Skip to content

Commit 688a5f2

Browse files
fix: update usage example for --only flag in README
1 parent f58cfc0 commit 688a5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ php artisan env:decrypt --only-values ...
4646
```
4747

4848
### Only Encrypting Secrets
49-
By default, if the `--only-values` flag is used only variables ending with `_PASSWORD`, `_KEY` and `_SECRET` will be encrypted. You can configure this behaviour with the `--only` flag. If you would only want to encrypt the variables ending with `_SECRET` and the `APP_KEY`, use it like this:
49+
By default, if the `--only-values` flag is used only variables ending with `_PASSWORD`, `_KEY` and `_SECRET` will be encrypted. You can configure this behaviour with the `--only` flag. If you would only want to encrypt the variables ending with `_SECRET` and the `APP_KEY`, you can specify multiple `--only` flags like this:
5050

5151
```shell
52-
php artisan env:encrypt --only-values --only="*_SECRET,APP_KEY"
52+
php artisan env:encrypt --only-values --only=*_SECRET --only=APP_KEY
5353
```
5454

5555
For decrypting, there is no difference: the decrypt command will leave unencrypted values.

0 commit comments

Comments
 (0)