Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found

When trying to install composer in laravel project get this error.

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover In ProviderRepository.php line 208:

Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not
found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

like image 487
Shubhra Sarker Avatar asked Jan 02 '23 09:01

Shubhra Sarker


2 Answers

I had this issue when deploying my app to Google App Engine. I found that by moving "nunomaduro/collision": "^2.0" from "require-dev" to "require" in my composer.json fixed this problem.

like image 116
Mark Wright Avatar answered Jan 03 '23 23:01

Mark Wright


  • move nunomaduro/collision: ^2.0 from require-dev to require in composer

If that doesn't solve the problem, try

  • deleting the composer.lock file
  • uploading the project again without this file (it solved it for me)
like image 23
manunoly Avatar answered Jan 03 '23 21:01

manunoly