Hacker News new | past | comments | ask | show | jobs | submit login

You're getting it wrong. PHP's (and Laravel) getenv is getting the system's environment variable. .env is a helper that overrides them. It just helping you setup different env var for each project in same system.

If you're using docker, it's fine to just use docker's env_file or environment value, or use Laravel's .env only if you prefer it.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: