赞
踩
这个问题是因为权限导致的,laravel因为本身太重了,导致需要搞文件缓存,这时候写入缓存的file_put_contents函数发现在storage文件夹下没有权限,那给他权限,并清除缓存
- chmod -R gu+w storage
-
- chmod -R guo+w storage
-
- php artisan cache:clear
g是组权限,u是当前用户权限,o是其他用户权限,+w是增加写权限
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。