role listing

This commit is contained in:
Saufi
2026-05-11 12:26:07 +08:00
parent 0b3705573c
commit a300eced76
11 changed files with 245 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('/roles', [RoleController::class, 'index'])->name('roles.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');