Laravel - custom .env file

前端 未结 6 1877
难免孤独
难免孤独 2020-12-31 19:41

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

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 20:17

    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

提交回复
热议问题