Laravel 报错 file_put_contents(): failed to open stream......解决
安装完laravel,启动完后报 ErrorException (E_WARNING) file_put_contents(/www/wwwroot/blog/storage…错误,是因为权限原因导致访问出错,
解决办法:
1.执行命令 php artisan cache:clear
2. 赋予 /storage 文件夹读写权限: chmod -R 777 storage;
...
原创
2020-12-24 09:54:26 ·
2128 阅读 ·
0 评论