.env are unique for each environment. You should not keep it in git repository
Mar 28, 2015
12
Level 51
Working with the .env file
Hi all,
Just finally getting around to playing with Laravel 5 and the .env is really cool specially when using Forge. But my question is do I have to change these details
DB_HOST=localhost
DB_DATABASE=blog2
DB_USERNAME=homestead
DB_PASSWORD=secret
Every time I want to push to production? Whereas before we have .env.production.php and .env.local.php which kept your local configuration then your production config was kept seperate.
Just trying to understand what's the best way for this? I'm also using Homestead for local dev.
Please or to participate in this conversation.
