2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
2017-06-10 04:07:29 +08:00
|
|
|
Route::get('/', 'HomeController@index');
|
2017-06-09 02:28:26 +08:00
|
|
|
Route::get('/home', 'HomeController@index');
|
2017-06-09 09:56:57 +08:00
|
|
|
|
2017-06-09 09:46:50 +08:00
|
|
|
|
2017-06-21 22:22:59 +08:00
|
|
|
/**
|
|
|
|
* These are only visible to a logged in user
|
|
|
|
*/
|
2017-06-09 09:02:52 +08:00
|
|
|
Route::group([
|
2017-06-22 05:06:36 +08:00
|
|
|
'namespace' => 'Frontend', 'prefix' => 'user', 'as' => 'frontend.',
|
2017-06-12 00:36:16 +08:00
|
|
|
'middleware' => ['role:admin|user'],
|
2017-06-09 09:02:52 +08:00
|
|
|
], function () {
|
2017-06-10 04:07:29 +08:00
|
|
|
Route::resource('dashboard', 'DashboardController');
|
2017-06-09 09:02:52 +08:00
|
|
|
});
|
2017-06-12 00:36:16 +08:00
|
|
|
|
2017-06-12 04:37:57 +08:00
|
|
|
Auth::routes();
|
|
|
|
|
2017-06-21 22:22:59 +08:00
|
|
|
require base_path('routes/admin.php');
|