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
{{ message }}
This repository was archived by the owner on Mar 14, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# A .env replacement for storing secret credentials in your Laravel application
1
+
# Add encrypted credentials to your Laravel production environment
2
2
3
3
[](https://packagist.org/packages/beyondcode/laravel-credentials)
The `beyondcode/laravel-credentials` package allows you to store all your secret credentials in an encrypted file and put that file into version control instead of
9
-
having to add multiple credentials into your `.env` file.
9
+
having to add multiple credentials into your `.env` file in your production environment.
10
10
11
11
There are a couple of benefits of using encrypted credentials instead of environment keys:
12
12
@@ -15,10 +15,10 @@ There are a couple of benefits of using encrypted credentials instead of environ
15
15
* You can deploy credentials together with your code.
16
16
* All secrets are in one location. Instead of managing multiple environment variables, everything is in one file.
17
17
18
-
Here's how you can access your stored credentials:
18
+
Here's how you can access your stored credentials. In this example we're retrieving the decrypted credential for the key `api-password`:
19
19
20
20
```php
21
-
$secret = credentials('my-secret-credentials');
21
+
$credential = credentials('api-password');
22
22
```
23
23
24
24
With the built-in edit command, you can easily edit your existing credentials. They will be automatically encrypted after saving your changes.
@@ -76,7 +76,7 @@ composer test
76
76
77
77
### Changelog
78
78
79
-
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
79
+
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
0 commit comments