diff --git a/src/BuildProcess/HarmonizeConfigurationFiles.php b/src/BuildProcess/HarmonizeConfigurationFiles.php index bf91f96..c537b2c 100644 --- a/src/BuildProcess/HarmonizeConfigurationFiles.php +++ b/src/BuildProcess/HarmonizeConfigurationFiles.php @@ -18,13 +18,20 @@ public function __invoke() { Helpers::step('Harmonizing Configuration Files'); - $configFiles = (new Finder())->files()->in($this->appPath.'/config'); + foreach ([ + $this->appPath.'/vendor/laravel/framework/config', + $this->appPath.'/config', + ] as $path) { + if (! is_dir($path)) { + continue; + } - foreach ($configFiles as $file) { - file_put_contents( - $file->getRealPath(), - $this->replaceAwsEnvironmentVariables($file) - ); + foreach ((new Finder())->files()->in($path) as $file) { + file_put_contents( + $file->getRealPath(), + $this->replaceAwsEnvironmentVariables($file) + ); + } } }