I have a project on Laravel 5 and I work with it at the office and at home too. It works fine, but recently at home it stopped working. Laravel show me two ErrorException
In case of shared hosting when you do not have command line access simply navigate to laravel/bootstrap/cache folder and delete (or rename) config.php and you are all done!
The reason for this problem is the cache files in localhost. According to that I've tried several things as follows to clear the cache on my project, but every time I've failed.
So I've found a solution for this problem after each and every above steps failed and it worked for me perfectly. I deleted the cache.php file in host_route/bootstrap/cache directory.
I think this answer will help your problem.
Actually I faced this issue when I moved my project from server to local.
in
storage/framework
four basic folders are required cache, sessions, testing, views
In My case sessions was missing might be in gitignore.
So I manually created session folder and refreshed browser and it was working.
So any of the missing folder if we delete this problem can be solved.
I used Laravel 8, This is my solution
Goto:
storage/framework/cache/data
set permission directory data is 777
It's worked for me
This did the magic for me. chmod -Rf 0777 storage
The best way to solve this problem is, go to directory laravel/bootstrap/cache
and delete config.php
file. or you can rename it as well like config.php.old
And your problem will be fix.
Happy coding :-)