How to safeguard my .env file from public access? I tried switching its permissions to 640, but the whole laravel application crashes on this. Any better suggestions?
Yes, I attempted to do this as the first thing. But this causes issues to the other projects, since I have multiple Laravel projects running on the same server. So either I do a deep-config of my webserver for URL-based routing, or I find some tweak for hiding individual .env files, for now. Of course, will fix the logs thing later on, trying the variable safety first.