“请提供有效的缓存路径"laravel中的错误

问题描述:

我复制了一个可运行的laravel应用,并将其重命名以用于其他应用.我删除了供应商文件夹,然后再次运行以下命令:

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:

Compiler.php第36行中的InvalidArgumentException:请提供一个有效的缓存路径.

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

ErrorException:file_put_contents(F:\ www \ example \ app \ storage \ framework/sessions/edf262ee7a2084a923bb967b938f54cb19f6b37d):打开流失败:没有这样的文件或目录

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.

显然,当我复制项目时,发生的事情是我的存储文件夹内的framework文件夹未复制到新目录,这导致了我的错误.

So apparently what happened was when I was duplicating my project the framework folder inside my storage folder was not copied to the new directory, this cause my error.