master_template/routes/CRUDgenerated/route.permissions.php
2024-06-20 16:42:33 +05:45

15 lines
1.2 KiB
PHP

<?php
use App\Http\Controllers\PermissionsController;
use Illuminate\Support\Facades\Route;
Route::prefix("permissions")->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::delete('/destroy/{id}', [PermissionsController::class, 'destroy'])->name('permissions.destroy');
Route::get('/toggle/{id}', [PermissionsController::class, 'toggle'])->name('permissions.toggle');
});