我认为我正在Laravel上遇到缓存问题
我有文件
我不断得到
未找到[layouts.fe.wedding-us.index]。
我尝试清除缓存
composer dumpauto
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: nesbot/carbon
Discovered Package: laravel/slack-notification-channel
Discovered Package: laravel/nexmo-notification-channel
Discovered Package: laravelcollective/remote
Discovered Package: htmlmin/htmlmin
Discovered Package: intervention/image
Discovered Package: laravelcollective/html
Package manifest generated successfully.
php artisan view:clear && php artisan cache:clear
Compiled views cleared!
Failed to clear cache. Make sure you have the appropriate permissions.
但我知道了
无法清除缓存。确保您具有适当的权限。
由于我运行了此命令以允许所有已经存在的命令
,所以不确定为什么它抱怨许可sudo chmod -R 777存储/引导程序/
我该如何解决这个问题?
答案 0 :(得分:2)
您最近是否从以前的Laravel版本升级? Failed to clear cache. Make sure you have the appropriate permissions.
可能是由于缺少文件夹storage/framework/cache/data
引起的。您可以使用以下方法手动创建它:
mkdir -p storage/framework/cache/data
请查看《升级到5.7》指南中的Cache paragraph,以获取更多详细信息。