diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index c77597e6ebf2..7c818c6b9f7d 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -195,9 +195,11 @@ protected function registerBaseBindings() $this->instance(Container::class, $this); $this->singleton(Mix::class); - $this->instance(PackageManifest::class, new PackageManifest( - new Filesystem, $this->basePath(), $this->getCachedPackagesPath() - )); + $this->singleton(PackageManifest::class, function () { + return new PackageManifest( + new Filesystem, $this->basePath(), $this->getCachedPackagesPath() + ); + }); } /**