完整错误:
Exception has occurred.
Illuminate\Contracts\Filesystem\FileNotFoundException: File does not exist at path D:\Projects\shop\back-end\storage\framework/cache/data/9c/1c/9c1c01dc3ac1445a500251fc34a15d3e75a849df
我试过 php artisan cache:clear、php artisan config:cache。没有结果..
最佳答案
如果您使用 Cache::has()
访问缓存存储这是预期的行为。内心深处 Cache::has()
将尝试访问预期位置并抛出 FileNotFoundException
如果该位置不存在。 (Source)
在 Illuminate\Cache\FileStore
此异常被捕获并转换为空负载。 (Source)
一些调试工具,如 XDebug,将在 FileNotFoundException
上停止。您可以将其视为误报。
关于Laravel:文件在路径.../缓存中不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51255035/