Skip to content

Commit de21675

Browse files
author
Sandip Patel
committed
key change for modules
1 parent 27ca20d commit de21675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/ServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function boot()
3737
foreach ($plugins as $plugin => $desc)
3838
{
3939
$plugin_code = str_replace('_', '', strtolower($plugin));
40-
$plugin_path = app_path(). '/Plugins/' .ucfirst($plugin_code). DIRECTORY_SEPARATOR;
40+
$plugin_path = app_path(). '/Modules/' .ucfirst($plugin_code). DIRECTORY_SEPARATOR;
4141
$plugin_config = $plugin_path. 'config.php';
4242

4343
if( \File::exists($plugin_config) )
@@ -48,7 +48,7 @@ public function boot()
4848
$this->loadTranslationsFrom($plugin_path.'Translations', $plugin_code);
4949

5050
$plugin_route = $plugin_path. 'routes.php';
51-
$plugin_namespace = 'App\Plugins\\' .ucfirst($plugin_code). '\\Controllers';
51+
$plugin_namespace = 'App\\Modules\\' .ucfirst($plugin_code). '\\Controllers';
5252

5353
if( \File::exists($plugin_route) )
5454
{

0 commit comments

Comments
 (0)