34 lines
1017 B
PHP
34 lines
1017 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\PermissionController;
|
|
use App\Http\Controllers\RoleController;
|
|
use App\Http\Controllers\UserController;
|
|
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');
|
|
|
|
Route::resource('roles', RoleController::class)->names('roles');
|
|
Route::resource('permissions', PermissionController::class)->names('permissions');
|
|
Route::resource('users', UserController::class)->names('users');
|
|
|
|
Route::get('/initialize-db', function () {
|
|
OMIS::initDB();
|
|
});
|