diff --git a/src/Illuminate/Foundation/PackageManifest.php b/src/Illuminate/Foundation/PackageManifest.php index 051a4b2a0917..57b3ffbb98d3 100644 --- a/src/Illuminate/Foundation/PackageManifest.php +++ b/src/Illuminate/Foundation/PackageManifest.php @@ -65,7 +65,7 @@ public function __construct(Filesystem $files, $basePath, $manifestPath) */ public function providers() { - return collect($this->getManifest())->flatMap(function ($configuration, $name) { + return collect($this->getManifest())->flatMap(function ($configuration) { return (array) ($configuration['providers'] ?? []); })->filter()->all(); }