I am using Laravel 5.1
I recently uploaded my project in shared hosting. but when i browse http://siteAddress.com/local/.env my .env file is visible.
http://siteAddress.com/local/.env
Finally I hide .env and disable index view of the folder named local. I create a .htaccess in folder local.
.env
local
.htaccess
And here is the code of .htaccess
# Disable index view Options -Indexes # Hide a specific file Order allow,deny Deny from all