3 ms·
That's actually kind of why I don't like it. Combining a Laravel project with docker makes you end up with multiple env files and it gets a little confusing.
by hparadiz 5y ago
That's actually kind of why I don't like it. Combining a Laravel project with docker makes you end up with multiple env files and it gets a little confusing.
- fendy3002 5y agoYou'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.