group(function () { Route::get('/', [AdcategoriesController::class, 'index'])->name('adcategories.index'); Route::get('/create', [AdcategoriesController::class, 'create'])->name('adcategories.create'); Route::post('/store', [AdcategoriesController::class, 'store'])->name('adcategories.store'); Route::post('/sort', [AdcategoriesController::class, 'sort'])->name('adcategories.sort'); Route::post('/updatealias', [AdcategoriesController::class, 'updatealias'])->name('adcategories.updatealias'); Route::get('/show/{id}', [AdcategoriesController::class, 'show'])->name('adcategories.show'); Route::get('/edit/{id}', [AdcategoriesController::class, 'edit'])->name('adcategories.edit') ; Route::post('/update/{id}', [AdcategoriesController::class, 'update'])->name('adcategories.update'); Route::delete('/destroy/{id}', [AdcategoriesController::class, 'destroy'])->name('adcategories.destroy'); Route::get('/toggle/{id}', [AdcategoriesController::class, 'toggle'])->name('adcategories.toggle'); });