Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61e9c13

Browse files
committed
Fixed issue with merging providers.
Signed-off-by: Joshua Parker <[email protected]>
1 parent 8a65911 commit 61e9c13

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Bootstrap/RegisterProviders.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,19 @@ protected function mergeAdditionalProviders(Application $app): void
4040
/** @var ConfigContainer $config */
4141
$config = $app->make(name: 'codefy.config');
4242

43-
$config->setConfigKey(
44-
'app.providers',
43+
$arrayMerge = array_unique(
4544
array_merge(
46-
$config->getConfigKey('app.providers'),
47-
self::$merge
45+
self::$merge,
46+
$config->getConfigKey(key: 'app.providers'),
4847
)
4948
);
49+
50+
$config->setConfigKey(
51+
'app',
52+
[
53+
'providers' => $arrayMerge,
54+
]
55+
);
5056
}
5157

5258
/**

0 commit comments

Comments
 (0)