You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configuration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ Your `.env` file should not be committed to your application's source control, s
40
40
41
41
If you are developing with a team, you may wish to continue including a `.env.example` file with your application. By putting place-holder values in the example configuration file, other developers on your team can clearly see which environment variables are needed to run your application.
42
42
43
+
If the value of the `APP_ENV` variable is set before bootstraping the app, Laravel will try to load a file that matches this environment and will fallback to the `.env` file. This variable can be set in a server configuration or in a command line tool. For example, the phpunit configuration file set `APP_ENV=testing`, Laravel will look for a `.env.testing` file first. If the file does not exist, the`.env` file will be used.
0 commit comments