2017-12-14 12:24:41 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
Route::group(['middleware' => [
|
2018-02-09 09:09:36 +08:00
|
|
|
'role:user' # leave blank to make this public
|
2017-12-14 12:24:41 +08:00
|
|
|
]], function() {
|
|
|
|
# all your routes are prefixed with the above prefix
|
|
|
|
# e.g. yoursite.com/sample
|
|
|
|
Route::get('/', '$STUDLY_NAME$Controller@index');
|
|
|
|
});
|