Hi, I have pulled the repository, run docker-compose up -d and docker run -it --rm \ ... composer create-project laravel/laravel application to create a new Laravel app.
When I try to access the laravel app through http://localhost:8888 I get this error on screen
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
To fix this I've run sudo chown -R 33 ./applciation as per your video for file permissions, but the problem is that whenever I generate a new file through artisan and try to edit it I get a popup window that prompts me to type my sudo password in order to save it. So in this case I have to run these commands again and again whenever I use artisan
sudo chown -R my-user ./application
sudo chgrp -R my-user ./application
sudo chown -R 33 ./application/storage
Is there a more efficient way of doing this?
Hi, I have pulled the repository, run
docker-compose up -danddocker run -it --rm \ ... composer create-project laravel/laravelapplication to create a new Laravel app.When I try to access the laravel app through http://localhost:8888 I get this error on screen
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission deniedTo fix this I've run
sudo chown -R 33 ./applciationas per your video for file permissions, but the problem is that whenever I generate a new file through artisan and try to edit it I get a popup window that prompts me to type my sudo password in order to save it. So in this case I have to run these commands again and again whenever I use artisansudo chown -R my-user ./applicationsudo chgrp -R my-user ./applicationsudo chown -R 33 ./application/storageIs there a more efficient way of doing this?