Skip to content

Commit

Permalink
Preload base options for missing config files
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed May 29, 2024
1 parent 0b26c43 commit 15a338f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ protected function loadConfigurationFiles(Application $app, RepositoryContract $

$base = $this->getBaseConfiguration();

foreach (array_diff(array_keys($base), array_keys($files)) as $name => $config) {
$repository->set($name, $config);
}

foreach ($files as $name => $path) {
$base = $this->loadConfigurationFile($repository, $name, $path, $base);
}
Expand Down

0 comments on commit 15a338f

Please sign in to comment.