Fix controller namespace in module generation #714

Updated Module Files
This commit is contained in:
Yash Govekar 2020-09-29 01:34:51 +05:30 committed by GitHub
parent 5df28eb027
commit 2c539d349d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
protected $namespace = '$MODULE_NAMESPACE$\$MODULE$\$CONTROLLER_NAMESPACE$';
protected $namespace = '$MODULE_NAMESPACE$\$MODULE$\Http\Controllers';
/**
* Called before routes are registered.

View File

@ -1,11 +1,11 @@
<?php
Route::get('/', '$STUDLY_NAME$Controller@index');
Route::get('/', 'IndexController@index');
/*
* To register a route that needs to be authentication, wrap it in a
* Route::group() with the auth middleware
*/
// Route::group(['middleware' => 'auth'], function() {
// Route::get('/', '$STUDLY_NAME$Controller@index');
// Route::get('/', 'IndexController@index');
// })