New-OMIS/routes/CRUDgenerated/route.permissions.php

16 lines
1.3 KiB
PHP
Raw Normal View History

2024-04-05 05:22:15 +00:00
<?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::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');
});