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