diff --git a/src/Illuminate/Config/FileLoader.php b/src/Illuminate/Config/FileLoader.php index b89e4e83fabc..22f45cc9cd46 100755 --- a/src/Illuminate/Config/FileLoader.php +++ b/src/Illuminate/Config/FileLoader.php @@ -159,7 +159,7 @@ public function cascadePackage($env, $package, $group, $items) if ($this->files->exists($path = $this->defaultPath.'/'.$file)) { - $items = array_merge($items, $this->getRequire($path)); + $items = array_replace_recursive($items, $this->getRequire($path)); } // Once we have merged the regular package configuration we need to look for @@ -169,7 +169,7 @@ public function cascadePackage($env, $package, $group, $items) if ($this->files->exists($path)) { - $items = array_merge($items, $this->getRequire($path)); + $items = array_replace_recursive($items, $this->getRequire($path)); } return $items;