I'm using laravel 5 with a Homestead box using vagrant and virtualbox for this, as demonstrated in the framework documentation:
Permission denied
I ran the commands from my Homestead: sudo chmod 777 -R <projeto>
but did not succeed.