Fatal error: Uncaught RuntimeException: A facade root has not been set. in /var/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:258 Stack trace: #0 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(18): Illuminate\Support\Facades\Facade::__callStatic('replaceNamespac...', Array) #1 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(582): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke() #2 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(563): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths() #3 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(474): Illuminate\Foundation\Exceptions\Handler->renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException)) #4 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(352): Illuminate\Foundation\Exceptions\Handler->prepareResponse(O in /var/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 258