Home  >  Q&A  >  body text

Fix "Please provide a valid cache path" error in Laravel

<p>I copied a working laravel application and renamed it to be used by another application. I deleted the vendor folder and ran the following command again: </p> <pre class="brush:php;toolbar:false;">composer self-update composer-update npm install bower install</pre> <p>I configured my routing and everything else correctly, but now when I try to run my application in the browser I get the following error: </p> <blockquote> <p>InvalidArgumentException in Compiler.php line 36: Please provide a valid cache path. </p> <p>ErrorException in Filesystem.php line 111: file_put_contents(F:wwwexampleappstorageframework/sessions/edf262ee7a2084a923bb967b938f54cb19f6b37d): Failed to open stream: No such file or directory </p> </blockquote> <p>I have never encountered this problem before and I have no idea what causes it or how to fix it. I have searched online for a solution but have found none so far. </p>
P粉094351878P粉094351878452 days ago495

reply all(1)I'll reply

  • P粉151466081

    P粉1514660812023-08-16 14:56:12

    Try the following:

    Create the following folders under storage/framework:

    • sessions
    • views
    • cache

    It should be running normally now

    reply
    0
  • Cancelreply