Please provide a valid cache path

user3718908 picture user3718908 · Jul 20, 2016 · Viewed 184k times · Source

I duplicated a working laravel app and renamed it to use for another app. I deleted the vendor folder and run the following commands again:

composer self-update

composer-update

npm install

bower install

I configured my routes and everything properly however now when I try to run my app in my browser I get the following errors:

InvalidArgumentException in Compiler.php line 36: Please provide a valid cache path.

ErrorException in Filesystem.php line 111: file_put_contents(F:\www\example\app\storage\framework/sessions/edf262ee7a2084a923bb967b938f54cb19f6b37d): failed to open stream: No such file or directory

I have never had this issue before, I do not know what is causing it neither do I know how to fix it, I have googled online for a solution but have found none so far.

Answer

Mauricio Wanderley Martins picture Mauricio Wanderley Martins · Aug 27, 2016

Try the following:

create these folders under storage/framework:

  • sessions
  • views
  • cache

Now it should work