diff --git a/src/LaracordServiceProvider.php b/src/LaracordServiceProvider.php index 802a29f..5b346bb 100644 --- a/src/LaracordServiceProvider.php +++ b/src/LaracordServiceProvider.php @@ -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; } /**