stack overflow suggests this solution https://stackoverflow.com/questions/38331397/how-to-protect-env-file-in-laravel
but as I discovered when you copy htaccess to root of your project this is high security risk for example I am able to access storage/logs/laravel.log file via browser
Stack Overflow
I moved my project to HOST but I can still access .env with address mysite.com/.env and display this file with all variables and secure data.
my .env file :
APP_ENV=local
APP_DEBUG=true
APP_KEY=ba...