DEV Community

Discussion on: Laravel .env Files Exposed In Browsers

 
joppedc profile image
JoppeDC

Correct, that is what i meant. The dotenv file (at least in symfony), is used for local development. Once you deploy a symfony project, it wil check if you removed the .env file. If the file still exists, your app will throw an error, thus making it so people HAVE to get rid of it.