"laravel.log" could not be opened: failed to open stream
laravel, laravel-4, php
Solution
You need to run one of the following:
- `sudo chmod -R 644 app/storage`
- `sudo chmod -R 755 app/storage`
Problem
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 ``` 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?