diff --git a/src/Illuminate/Foundation/PackageManifest.php b/src/Illuminate/Foundation/PackageManifest.php index 5ef13b7106a9..46617069af9b 100644 --- a/src/Illuminate/Foundation/PackageManifest.php +++ b/src/Illuminate/Foundation/PackageManifest.php @@ -122,7 +122,9 @@ public function build() $packages = []; if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) { - $packages = json_decode($this->files->get($path), true); + $installed = json_decode($this->files->get($path), true); + + $packages = $installed['packages'] ?? $installed; } $ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());