Laravel 5显示ErrorException file_put_contents无法打开流:没有这样的文件或目录 [英] Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory
问题描述
我有一个关于Laravel 5的项目,并且我还在办公室和家里使用它.它工作正常,但是最近在家里它停止工作了. Laravel向我展示了两个ErrorException
I have a project on Laravel 5 and I work with it at the office and at home too. It works fine, but recently at home it stopped working. Laravel show me two ErrorException
file_put_contents(G:\project\storage\framework\views/751d8a0fd8a7d4138c09ceb6a34bb377aa2d6265.php):
failed to open stream: No such file or directory
和
file_put_contents(G:\project\storage\framework/sessions/aIXycR4LIAUBVIqZu0T590paOMIpV8vfZGIroEp0):
failed to open stream: No such file or directory
我正在通过Google搜索问题的决策,并找到有关正确权利的信息.所有建议都与Linux有关,但我也在办公室和家里的Windows中工作.
I'm searching problem decision with Google and find information about correct rights. All advice is about Linux, but I'am work in Windows at the office and at home too.
当我尝试清除应用程序缓存和查看缓存时,工匠与我交谈-...已清除.但是缓存数据和视图存在于存储中.
When I try to clear application cache and view cache, artisan talk to me - ...cleared. But cache data and views are present in storage.
如何解决此问题?
提前谢谢!
推荐答案
经过研究后,我了解到-我有非常相似但不同的根项目位置,并将其缓存在/bootstrap/cache
中.缓存清除项目启动后.
After some research I understand - I have very similar, but different root project locations and its cached in /bootstrap/cache
. After cache clearing project started.
这篇关于Laravel 5显示ErrorException file_put_contents无法打开流:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!