I'm new in laravel and I know the .env file is used to store database and email credentials. But when I'm opening http://servername/.env the .env file content is shown in browser.
Any chance to protect my database credentials without changing the file name to non-guessable one?
In case I'm using .htaccess to prevent file read, would this have negative effect to the laravel framework?