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

16 lines
1.2 KiB
PHP
Raw Normal View History

2024-04-05 05:22:15 +00:00
<?php
use App\Http\Controllers\RolesController;
use Illuminate\Support\Facades\Route;
Route::prefix("roles")->group(function () {
Route::get('/', [RolesController::class, 'index'])->name('roles.index');
Route::get('/create', [RolesController::class, 'create'])->name('roles.create');
Route::post('/store', [RolesController::class, 'store'])->name('roles.store');
Route::post('/sort', [RolesController::class, 'sort'])->name('roles.sort');
Route::post('/updatealias', [RolesController::class, 'updatealias'])->name('roles.updatealias');
Route::get('/show/{id}', [RolesController::class, 'show'])->name('roles.show');
Route::get('/edit/{id}', [RolesController::class, 'edit'])->name('roles.edit') ;
Route::post('/update/{id}', [RolesController::class, 'update'])->name('roles.update');
Route::get('/destroy/{id}', [RolesController::class, 'destroy'])->name('roles.destroy');
Route::get('/toggle/{id}', [RolesController::class, 'toggle'])->name('roles.toggle');
Route::get('/clone/{id}', [RolesController::class, 'clone'])->name('roles.clone');
});