add module provider dependencies

This commit is contained in:
Nabeel Shahzad
2017-12-01 14:34:37 -06:00
parent 786c4be726
commit aa4c35afbc
44 changed files with 4612 additions and 3061 deletions

View File

@@ -0,0 +1,24 @@
<?php
Route::group([
'as' => '$LOWER_NAME$.',
'prefix' => '$LOWER_NAME$',
'middleware' => [
'web',
'role:admin|user' # leave blank for public
],
'namespace' => '$MODULE_NAMESPACE$\$STUDLY_NAME$\Http\Controllers'
], function() {
# all your routes are prefixed with the above prefix
# e.g. yoursite.com/sample
Route::get('/', '$STUDLY_NAME$Controller@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');
});
});