diff --git a/Commands/stubs/routes.stub b/Commands/stubs/routes.stub index 7231ccf..e89b280 100644 --- a/Commands/stubs/routes.stub +++ b/Commands/stubs/routes.stub @@ -1,6 +1,6 @@ '$LOWER_NAME$', 'namespace' => '$MODULE_NAMESPACE$\$STUDLY_NAME$\Http\Controllers'], function() +Route::group(['middleware' => 'web', 'prefix' => '$LOWER_NAME$', 'namespace' => '$MODULE_NAMESPACE$\$STUDLY_NAME$\Http\Controllers'], function() { Route::get('/', '$STUDLY_NAME$Controller@index'); }); \ No newline at end of file