[SOLVED] Undefined index: name In PackageManifest.php line 122 — Laravel

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 :

  1. Find the PackageManifest.phpfile in:
vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php