role listing

This commit is contained in:
2026-05-11 11:41:27 +08:00
parent 5f361d0e39
commit 909c767e01
7 changed files with 133 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\RoleController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
@@ -12,6 +13,7 @@ Route::get('/dashboard', function () {
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::get('/role', [RoleController::class, 'index'])->name('role.index');
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');