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'); });