Laravel-ErrorException file_put_contents failed to open stream: No such file or directory(storage\framework\sessions)

Sovary October 5, 2021 585
30 seconds read

I have worked on my Laravel project in localhost and it worked perfectly, but after I hosted my project on my real server then I got a problem show error like Laravel has created file session but the file could not be found.

file_put_contents(G:\project\storage\framework/sessions/aIXycR4LIAUBVIqZu0T590paOMIpV8vfZGIroEp0):
failed to open stream: No such file or directory

To handle this, go to directory laravel/bootstrap/cache and delete config.php file. or you can rename it as well like config.php.old and the error is flied away.

Laravel 6.*  Hosting  Laravel 
Author

Founder of CamboTutorial.com, I am happy to share my knowledge related to programming that can help other people. I love write tutorial related to PHP, Laravel, Python, Java, Android Developement, all published post are make simple and easy to understand for beginner. Follow him