You are on page 1of 1

1 <?

php
2
3 use Illuminate\Support\Facades\Route;
4 use App\Http\Controllers\UserController;
5 use App\Http\Controllers\RoleController;
6
7 /*
8 |--------------------------------------------------------------------------
9 | Web Routes
10 |--------------------------------------------------------------------------
11 |
12 | Here is where you can register web routes for your application. These
13 | routes are loaded by the RouteServiceProvider within a group which
14 | contains the "web" middleware group. Now create something great!
15 |
16 */
17
18 Route::get('/', function () {
19 return view('welcome');
20 });
21
22 Auth::routes();
23 Route::controller(UserController::class)->group(function(){
24 Route::get('/users', 'index');
25 Route::post('/users/store', 'store');
26 Route::get('/users/show/{uuid}', 'show');
27
28 });
29
30 Route::controller(RoleController::class)->group(function(){
31 Route::get('/roles', 'index');
32 Route::post('/roles/store', 'store');
33 Route::get('/roles/show/{uuid}', 'show');
34
35 });

You might also like