Laravel assumes that .env
file should describe environment, and it should not be committed to your repo.
What if I want to keep both .env
f
You've single .env file into laravel and you can define level of your app.
APP_ENV=local
OR
APP_ENV=production
You can set configuration as per your requirement and not need to create new .env file to here. More about Laravel Environment Variables :
and Here's more descriptive help for you: phpdotenv