How to fix error "A facade root has not been set."


I was upgrading Laravel and got the error:

Fatal error: Uncaught RuntimeException: A facade root has not been set. in /Users/remarkablemark/laravel-project/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:335

The fix was to run composer update with --no-scripts:

composer update --no-scripts


Please support this site and join our Discord!