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