15 lines
1.1 KiB
PHP
15 lines
1.1 KiB
PHP
|
<?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::delete('/destroy/{id}', [RolesController::class, 'destroy'])->name('roles.destroy');
|
||
|
Route::get('/toggle/{id}', [RolesController::class, 'toggle'])->name('roles.toggle');
|
||
|
});
|