file put content error: no such file in directory

Viewed 37

I am trying to upload my laravel project from Xampp to shared hosting, but I get the error:

file_put_contents(C:\xampp\htdocs\resido\storage\framework/sessions/Jmmr9HI35UYdhIfZLDTVlLGjCy5AHiuVK9NfOQuT): failed to open stream: No such file or directory

when I try either of the following solutions:

  1. delete the file app/bootstrap/cache/config.php
  2. composer dump-autoload
  3. php artisan config:clear,

the application works. however, all the changes I made while working with xampp is gone and I get the old view from the application template. how do I fix this problem without losing the changes I made to the project?

I think I'm having this error because the folder C:\xampp\htdocs\resido\storage\framework/sessions does not exist how do I change this directory to that of the live hosting?

1 Answers

Make sure the which you are calling is available in the "storage\framework/sessions" folder OR you can unset all the current sessions from the browser and try

Related