Problem:
I tried to deploy my laravel application, then i got the following error:
In PackageManifest.php line 122: Undefined index: name

Solution:
In my case, the following steps are worked for me :
- Find the
PackageManifest.php
file in:
vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php
2. Comment the line:
$packages = json_decode($this->files->get($path), true);
3. Replace with these two lines code:
$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;
Hope it helps!