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