You should not chmod 777'ing the .env file. Giving write permissions to anyone is a security issue.
Thanks for the reply! What would be the correct approach then?
I'd go with chmod 644 and chown $USER to fix the permissions issue.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.