Skip to content

Rotas

As rotas deste projeto são específicas com algumas nuances próprias.

Confira.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php
Auth::routes();

Route::get('/', 'HomeController@index');

Route::get('/home', 'HomeController@home')->name('home');

Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function(){
    Route::resource('users', 'Admin\UserController');
    Route::resource('roles', 'Admin\RoleController');
    Route::resource('permissions', 'Admin\PermissionController');
    Route::resource('clients', 'Admin\ClientController');
});