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

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
  • 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
  • target class illuminatedatabaseeloquentfactory does not exist
  • class request does not exist laravel

So, This tutorial will provide you 2 solutions of the above-given problems.

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 below command and 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 go to your Laravel app. Then go 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

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

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