在搭建laravel5.7的时候,报错:

“Failed to clear cache. Make sure you have the appropriate permissions” in Laravel 5.7

原因是差个目录,需要新建一个目录,就可以了。

mkdir -p storage/framework/cache/data

设置目录权限

chmod 777 /home/www/dir/bootstrap/cache && chmod 777 /home/www/dir/bootstrap/cache/*

参考:
​​​https://stackoverflow.com/questions/54519700/failed-to-clear-cache-make-sure-you-have-the-appropriate-permissions-in-larav​