Heera/Modules/User/routes/web.php

24 lines
868 B
PHP
Raw Normal View History

2024-05-16 03:46:08 +00:00
<?php
use Illuminate\Support\Facades\Route;
use Modules\User\Http\Controllers\PermissionController;
use Modules\User\Http\Controllers\RoleController;
use Modules\User\Http\Controllers\UserController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group([], function () {
Route::resource('user', UserController::class)->names('user');
Route::resource('role', RoleController::class)->names('role');
Route::resource('permission', PermissionController::class)->names('permission')->only(['index','destroy']);
});