New-OMIS/routes/web.php

30 lines
948 B
PHP
Raw Normal View History

2024-04-04 07:23:00 +00:00
<?php
2024-04-04 07:46:19 +00:00
use App\Http\Controllers\PermissionController;
use App\Http\Controllers\RoleController;
2024-04-04 08:19:00 +00:00
use App\Http\Controllers\UserController;
2024-04-04 07:23:00 +00:00
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
2024-04-04 07:46:19 +00:00
Route::resource('roles', RoleController::class)->names('roles');
Route::resource('permissions', PermissionController::class)->names('permissions');
2024-04-04 08:19:00 +00:00
Route::resource('users', UserController::class)->names('users');