There is no existing directory at “…/storage/logs” and its not buildable: Permission denied
解决方案:
无需为存储文件添加任何权限。
- 这里的主要问题是在编译的文件中,并且由于哪个 laravel 尝试显示错误。
- 默认情况下,在 Laravel 中,存储文件无权在控制台中显示(错误显示来自 error.log 文件)。
- 所以你需要修复的是修复编译文件。这可以通过个单一的命令来完成
php artisan optimize:clear
此命令将清除所有缓存
- Compiled views
- Application cache
- Route cache
- Configuration cache