What would be your secure directory structure when working with Laravel framework. The sensitive files like .env should not be exposed in the browsers. It contains sensitive information like database, mail, payment API credentials.
I just google
DB_USERNAME filetype:env and dang hundreds of .env files are exposed in the browser. How would you save that?
I did the tweet also: https://twitter.com/_shahroznawaz/status/1080393723412967424