phpvms/routes/web.php

26 lines
666 B
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?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!
|
*/
2017-06-10 04:07:29 +08:00
Auth::routes();
2017-06-09 02:28:26 +08:00
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-09 09:02:52 +08:00
Route::group([
2017-06-10 04:07:29 +08:00
'namespace' => 'Frontend',
2017-06-11 09:27:24 +08:00
'middleware' => ['role:admin', 'role: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
});