Why doesn’t my Laravel project show the .env file on a Mac?
How to fix it?
env is a hidden file, so you need to allow file explorer to "see" hidden files.
env file contains secret / sensitive data, e.g. database details, username, password etc. Hence for security reason also . env file should not be checked in. Also while you are on local development, obviously environment should be of local while on production it should be for production.
In a fresh Laravel installation, the root directory of your application will contain a . env. example file that defines many common environment variables.
If you would like to see hidden file in Finder just press CMD + SHIFT + .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With