phpvms/routes/web.php
2017-06-21 20:18:01 -05:00

20 lines
465 B
PHP
Executable File

<?php
Route::get('/', 'HomeController@index');
Route::get('/home', 'HomeController@index');
/**
* These are only visible to a logged in user
*/
Route::group([
'namespace' => 'Frontend', 'prefix' => 'user', 'as' => 'frontend.',
'middleware' => ['role:admin|user'],
], function () {
Route::resource('dashboard', 'DashboardController');
});
Auth::routes();
Route::get('/logout', 'Auth\LoginController@logout');
require base_path('routes/admin.php');