“请提供有效的缓存路径"Laravel 中的错误 [英] "Please provide a valid cache path" error in 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.
Filesystem.php 第 111 行中的 ErrorException:file_put_contents(F:wwwexampleappstorageframework/sessions/edf262ee7a2084a923bb967b938f54cb19f6b37d):无法打开流:没有这样的文件或目录
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 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.
推荐答案
很明显,当我复制我的项目时,我的存储文件夹中的框架文件夹没有复制到新目录,这导致了我的错误.
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.
这篇关于“请提供有效的缓存路径"Laravel 中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!