Laravel on Google App Engine Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found

I'm building a laravel website, just a basic generic CRUD and try to host it on google cloud app engine. However, everytime i run gcloud app deploy and try to visit the site it shows an error.

At first it had the Class 'Facade\Ignition\IgnitionServiceProvider' not found error, i looked it up and fixed it by running composer remove --dev facade/ignition

error nunomaduro/collision

Now that error is fixed, this Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found error showed up and i have no idea how to fix it.

Here's what i've done :

  1. composer remove --dev facade/ignition
  2. change APP_DEBUG to False
  3. php artisan route:clear and the other ones
  4. moved nunomaduro from require-dev to require in composer.json
  5. composer install and composer update

None of them seems to have no effect whatsoever

here's my composer.json :

{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^7.2", "barryvdh/laravel-dompdf": "^0.8.5", "fideloper/proxy": "^4.0", "google/cloud-error-reporting": "^0.17.0", "google/cloud-logging": "^1.20", "laravel/framework": "^7.0", "laravel/tinker": "^2.0", "laravel/ui": "^2.0", "maatwebsite/excel": "^3.1", "nunomaduro/collision": "^4.1", "simplesoftwareio/simple-qrcode": "^2.0" }, "require-dev": { "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "phpunit/phpunit": "^8.5" }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] } }, "autoload": { "psr-4": { "App\\": "app/" }, "classmap": [ "database/seeds", "database/factories" ] }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ], "post-install-cmd": [ "chmod -R 755 bootstrap\/cache", "php artisan cache:clear" ] } } 

if you need anything to help identify the problem, please let me know. Any help will be appreciated.

4

1 Answer

  • delete composer.lock file
  • upload the project again solve the problem for me
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like