问题描述
我复制了一个可运行的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:
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
我以前从未遇到过此问题,我不知道是什么原因引起的,也不知道如何解决,我已经在Google上搜索了一个解决方案,但到目前为止还没有找到.
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.
这篇关于请提供有效的缓存路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!