1、找到对应文件 :

vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php

 

2、找到对应行 122  实际上应该是116行

$packages = json_decode($this->files->get($path), true);

修改为

$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;

。

更多推荐