0

I have this error bellow happening. I have tried changing same things as suggested here, but I had no success.

Blockquote Fatal error: Uncaught RuntimeException: A facade root has not been set. in /home/concordia/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:236 Stack trace: #0 Blockquote

I am using Laravel 5.8 and the project doesn't work on production, but on dev it's all fine. Any of you know what this is?

Thanks you a lot.

Tim Lewis
  • 27,813
  • 13
  • 73
  • 102

1 Answers1

0

Try to delete the vendor folder rm -rf ./vendor then install the project dependencies composer install --optimize-autoloader --no-dev

Also don't forget to set the environment to production and to disable debugging in the .env file since you are installing for production

APP_ENV=production
APP_DEBUG=false
Soufiene Slimi
  • 119
  • 2
  • 8