Fix "Please provide a valid cache path" error in Laravel
P粉094351878
P粉094351878 2023-08-15 19:44:19
0
1
394

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:

composer self-update composer-update npm install bower install

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:

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

ErrorException in Filesystem.php line 111: file_put_contents(F:wwwexampleappstorageframework/sessions/edf262ee7a2084a923bb967b938f54cb19f6b37d): Failed to open stream: No such file or directory

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粉094351878
P粉094351878

reply all (1)
P粉151466081

Try the following:

Create the following folders understorage/framework:

  • sessions
  • views
  • cache

It should be running normally now

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!