Skip to content

Commit

Permalink
🩹 Fix config merging when built for production (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored May 30, 2024
1 parent e56f676 commit 99a62ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LaracordServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ public function boot()
*/
protected function getConfigs(string $path): array
{
$config = [];
$configs = [];

foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {
$config[basename($file->getRealPath(), '.php')] = require $file->getRealPath();
$configs[basename($file->getPathname(), '.php')] = require $file->getPathname();
}

return $config;
return $configs;
}

/**
Expand Down

0 comments on commit 99a62ff

Please sign in to comment.