re-add Sample module

This commit is contained in:
Nabeel Shahzad
2017-12-05 21:51:15 -06:00
parent 84935171eb
commit c58b8fb787
14 changed files with 427 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
Route::group(['middleware' => [
'role:admin|user' # leave blank to make this public
]], function() {
# all your routes are prefixed with the above prefix
# e.g. yoursite.com/sample
Route::get('/', 'SampleController@index');
# This is the admin path. Comment this out if you don't have
# an admin panel component.
Route::group([
'middleware' => ['role:admin'],
], function () {
Route::get('/admin', 'AdminController@index');
});
});