diff --git a/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php b/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php index eb4d07691470..0d08c6daf551 100644 --- a/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php +++ b/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php @@ -91,7 +91,7 @@ protected function getConfigurationFiles(Application $app) */ protected function getConfigurationNesting(SplFileInfo $file, $configPath) { - $directory = dirname($file->getRealPath()); + $directory = $file->getPath(); if ($tree = trim(str_replace($configPath, '', $directory), DIRECTORY_SEPARATOR)) { $tree = str_replace(DIRECTORY_SEPARATOR, '.', $tree).'.';