📌  相关文章
📜  Laravel PackageManifest.php:未定义索引:名称 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:53.083000             🧑  作者: Mango

代码示例2
//THIS IS TEMPORARY FIX IF YOU DONOT WANT TO MODIFY COMPOSER.JSON OR COMPOSER.LOCK
Try this, it worked for me, in the following file:

vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
Find this line and comment it:

$packages = json_decode($this->files->get($path), true);
Add two new lines after the above commented line:

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