ErrorException (E_NOTICE) Undefined index: name laravel 7

Viewed 4905

I have clone my project from heroku and am using wampserver and composer version 2. Can someone help me to understand why am I get this error.

In PackageManifest.php line 131:

Undefined index: name

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

2 Answers
 composer update laravel/framework

The above step solves the issue. I had same issue with my composer installer, after updating composer it works enter image description here

I think I had the exact same error the other day, and for me, the solution was to downgrade the composer with:

composer self-update --1

Don't know if you will accept this as an answer, but that's what worked for me.

Related