2018-02-09 09:09:36 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
Route::group(['middleware' => [
|
2019-08-27 00:32:46 +08:00
|
|
|
'role:user', // leave blank to make this public
|
|
|
|
]], function () {
|
|
|
|
// all your routes are prefixed with the above prefix
|
|
|
|
// e.g. yoursite.com/sample
|
2018-02-09 09:09:36 +08:00
|
|
|
Route::get('/', 'SampleController@index');
|
|
|
|
});
|