Skip to content

Commit 59ed046

Browse files
committed
fixed config merge
1 parent ba87cad commit 59ed046

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/Providers/Laravel.php

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function register()
2525
$this->registerServices();
2626
$this->setupStubPath();
2727
$this->registerProviders();
28+
$this->registerConfig();
2829
}
2930

3031
/**
@@ -58,4 +59,12 @@ protected function registerServices()
5859

5960
$this->app->alias(RepositoryInterface::class, 'module');
6061
}
62+
63+
/**
64+
* Register module config.
65+
*/
66+
public function registerConfig()
67+
{
68+
$this->mergeConfigFrom(__DIR__ . '/../Config/module.php', 'module');
69+
}
6170
}

src/Providers/Main.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ protected function registerModules()
3333
* Register package's namespaces.
3434
*/
3535
protected function registerNamespaces()
36-
{
37-
$this->mergeConfigFrom(__DIR__ . '/../Config/module.php', 'module');
38-
36+
{
3937
$this->publishes([
4038
__DIR__ . '/../Config/module.php' => config_path('module.php'),
4139
], 'module');

0 commit comments

Comments
 (0)