I have successfully set up a Vagrant environment to put my laravel application with all its dependencies, as well as configuring the web server as required. I set this up using ubuntu.
The problem that I have is the app/storage folder. I noticed that the first time I loaded the site, it gave me an error with permissions. I then ran a:
chmod -R a+rwx app/storage ... And that made me load my file properly. When I refreshed, I got a blank screen.
I ran chmod once again, and I had access to my mainpage once again.
I tested my routes only to come with the problem that my application randomly crashed. Running chmod yet again solved this.
I came to the conclusion that my problem is related with group ownership and not so much permissions themselves, because files are being created constantly on the app/storage folder and they are not being created with permissions.
How can I add write permissions to the app/storage folder so everytime new files are made, will have the permissions I need?