Class ‘NunoMaduro\Collision\Adapters\Laravel\ CollisionServiceProvider’ not found

When you deploy your Laravel app to Google Cloud, you may encounter the exception Class ‘NunoMaduro\Collision\Adapters\Laravel\ CollisionServiceProvider’ not found.

Fix

Edit your composer.json file and move nunomaduro/collision from require-dev to require.

Delete your vendor folder.

Run composer install and composer update.

Finally run gcloud app deploy and gcloud app browse.