phpvms/routes/web.php
2017-06-10 21:32:22 -05:00

26 lines
666 B
PHP
Executable File

<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
Auth::routes();
Route::get('/', 'HomeController@index');
Route::get('/home', 'HomeController@index');
Route::group([
'namespace' => 'Frontend',
'middleware' => ['role:admin', 'role:user'],
], function () {
Route::resource('dashboard', 'DashboardController');
});