Skip to content

Commit 66f2a83

Browse files
committed
Added note on source control.
1 parent 4e5b772 commit 66f2a83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ All of the key-value pairs returned by this file will automatically be available
113113

114114
'key' => $_ENV['TEST_STRIPE_KEY']
115115

116-
On your production server, create a `.env.php` file in your project root that contains the corresponding values for your production environment.
116+
Be sure to add the `.env.local.php` file to your `.gitignore` file. This will allow other developers on your team to create their own local environment configuration, as well as hide your sensitive configuration items from source control.
117+
118+
Now, On your production server, create a `.env.php` file in your project root that contains the corresponding values for your production environment. Like the `.env.local.php` file, the production `.env.php` file should never be included in source control.
117119

118120
> **Note:** You may create a file for each environment supported by your application. For example, the `development` environment will load the `.env.development.php` file if it exists.
119121

0 commit comments

Comments
 (0)