From 2c539d349d7e11c37111b3f9fad2d22664b9ff7e Mon Sep 17 00:00:00 2001 From: Yash Govekar Date: Tue, 29 Sep 2020 01:34:51 +0530 Subject: [PATCH] Fix controller namespace in module generation #714 Updated Module Files --- resources/stubs/modules/route-provider.stub | 2 +- resources/stubs/modules/routes.stub | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/stubs/modules/route-provider.stub b/resources/stubs/modules/route-provider.stub index 13307df0..2a3dbd4c 100644 --- a/resources/stubs/modules/route-provider.stub +++ b/resources/stubs/modules/route-provider.stub @@ -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. diff --git a/resources/stubs/modules/routes.stub b/resources/stubs/modules/routes.stub index 56e8cace..8dde24dd 100644 --- a/resources/stubs/modules/routes.stub +++ b/resources/stubs/modules/routes.stub @@ -1,11 +1,11 @@ 'auth'], function() { -// Route::get('/', '$STUDLY_NAME$Controller@index'); +// Route::get('/', 'IndexController@index'); // })