quot;laravel.logquot; could not be opened: failed to open stream(“laravel.log无法打开:无法打开流)
问题描述
我已经在本地 OSX 机器上设置了 Laravel homestead,一切似乎都很顺利,直到我尝试打开 example.app:8000 并收到此错误:
I have setup Laravel homestead on a local OSX machine, everything seemed to be going smoothly until I tried to open example.app:8000 and got this error:
Error in exception handler: The stream or file "/home/vagrant/Code/example/app/storage/logs/laravel.log" could not be opened: failed to open stream: Protocol error in /home/vagrant/Code/example/bootstrap/compiled.php:8671
我关注了 Laravel 文档以及 Laracast 关于建立宅基地的信息,所以我不确定是什么原因造成的.我可以看到 /home/vagrant/Code/example/app/storage/logs/laravel.log 不存在,但我认为这是应该自动创建的东西?
I followed the Laravel docs as well as a Laracast about setting up homestead, so I am not sure what would be causing this. I can see that /home/vagrant/Code/example/app/storage/logs/laravel.log doesn't exist, but I assume that is something that should be created automatically?
推荐答案
您需要运行以下之一:
sudo chmod -R 644 应用程序/存储sudo chmod -R 755 应用程序/存储
这篇关于“laravel.log"无法打开:无法打开流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“laravel.log"无法打开:无法打开流
基础教程推荐
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php中的foreach复选框POST 2021-01-01
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- php中的PDF导出 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
