Laravel page shows “This page isn’t working” instead of errors

If you are working on your laravel web app on server or deploying your laravel web app to a local machine server to live server (laravel on linux ubuntu, laravel on windows). And you face any of the problem given below:

  • This page isn’t working http error 500 laravel
  • This page isn t working http error 500 laravel on server
  • Fatal error: Uncaught ReflectionException: Class config does not exist
  • Class config does not exist in vendor/laravel/framework/src illuminatecontainercontainer php 767
  • localhost is currently unable to handle this request. http error 500 laravel
  • uncaught reflectionexception: class config does not exist laravel
  • is currently unable to handle this request http error 500 laravel
  • in container php line 788 class config does not exist
  • this page isn t working127 00 1 redirected you too many times
  • vendor/laravel/framework/src/illuminatecontainercontainer php on line 738
  • this page isn’t working localhost is currently unable to handle this request. http error 500 laraveltarget class illuminatedatabaseeloquentfactory does not exist
  • class request does not exist laravel

Now, you can find 2 solutions to the above-given errors.

Solution 1 – Edit .evn File

Open, .env file and update the following lines of code:

APP_ENV=local
APP_DEBUG=true

Then again run your laravel app. If you are still facing problem then you should see second solution.

Solution 2 – Clear Cache of Laravel App

Use the following commands to clear your laravel app cache like session cache, cookies cache:

php artisan cache:clear

Use the below command and clear your config cache :

php artisan config:cache

If you execute the above-given command. And shows you any of the following issues on your terminal:

  • Fatal error: Uncaught ReflectionException: Class config does not exist
  • Class config does not exist in vendor/laravel/framework/src illuminatecontainercontainer php 767
  • uncaught reflectionexception: class config does not exist laravel
  • in container php line 788 class config does not exist
  • vendor/laravel/framework/src/illuminatecontainercontainer php on line 738

So now you need to visit your Laravel app directory and then visit to bootstrap/cache directory. And delete all files and sub-directories inside the bootstrap/cache directory.

Or, you can execute the following on the terminal instead of manually deleting the file:

cd bootstrap/cache/
rm -rf *.php

Recommended Laravel Tutorials

Recommended:-Laravel Try Catch

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button