Skip to content

Commit 27ca20d

Browse files
author
Sandip Patel
committed
module configuration
1 parent 634777c commit 27ca20d

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
@@ -24,15 +24,15 @@ public function boot()
2424
{
2525
$this->loadRoutesFrom(__DIR__. '/routes.php');
2626
$this->loadMigrationsFrom(__DIR__. '/migrations');
27+
$this->mergeConfigFrom(__DIR__.'/config.php', 'modules');
2728
$this->loadTranslationsFrom(__DIR__.'/translations', 'modules');
2829

2930
$this->publishes([
30-
__DIR__. 'config.php' => config_path('modules.php'),
3131
__DIR__.'/translations' => resource_path('lang/vendor/modules')
3232
]);
3333

3434

35-
$plugins = config('plugins', []);
35+
$plugins = config('modules', []);
3636

3737
foreach ($plugins as $plugin => $desc)
3838
{

0 commit comments

Comments
 (0)