Raffales-LMS/routes/CRUDgenerated/route.campaigns.php
2024-04-16 15:43:24 +05:45

15 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\CampaignsController;
use Illuminate\Support\Facades\Route;
Route::prefix("campaigns")->group(function () {
Route::get('/', [CampaignsController::class, 'index'])->name('campaigns.index');
Route::get('/create', [CampaignsController::class, 'create'])->name('campaigns.create');
Route::post('/store', [CampaignsController::class, 'store'])->name('campaigns.store');
Route::post('/sort', [CampaignsController::class, 'sort'])->name('campaigns.sort');
Route::post('/updatealias', [CampaignsController::class, 'updatealias'])->name('campaigns.updatealias');
Route::get('/show/{id}', [CampaignsController::class, 'show'])->name('campaigns.show');
Route::get('/edit/{id}', [CampaignsController::class, 'edit'])->name('campaigns.edit') ;
Route::post('/update/{id}', [CampaignsController::class, 'update'])->name('campaigns.update');
Route::delete('/destroy/{id}', [CampaignsController::class, 'destroy'])->name('campaigns.destroy');
Route::get('/toggle/{id}', [CampaignsController::class, 'toggle'])->name('campaigns.toggle');
});