title: Laravel 7 Fatal error: Uncaught RuntimeException: A facade root has not been set
body: <p>I have looked at several answers suggested to a similar issue but nothing worked in my case.
  FYI, this is my first project in Laravel 7, working fine on my Mac.
  I have deployed the project on my server following <a href="https://laravelarticle.com/deploy-laravel-on-shared-hosting" rel="nofollow noreferrer">this article</a>.
  When running the project on the web, I get the following error :</p>
  <blockquote>
  <p>Fatal error: Uncaught RuntimeException: A facade root has not been set. in /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:258</p>
  <p>Stack trace: #0 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(425): Illuminate\Support\Facades\Facade::__callStatic('replaceNamespac...', Array) #1 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(402): Illuminate\Foundation\Exceptions\Handler-&gt;registerErrorViewPaths() #2 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(313): Illuminate\Foundation\Exceptions\Handler-&gt;renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException)) #3 /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(210): Illuminate\Foundation\Exceptions\Handler-&gt;prepareResponse(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\HttpExcepti in /usr/www/users/utopiqwvpw/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 258</p>
  </blockquote>
  <p>How can I fix it?</p>