Laravel creates a soft backup of ENV files. #48051
Unanswered
bhargavraviya
asked this question in
Ideas
Replies: 1 comment 1 reply
-
There is env:encrypt. Would that do what you want? Because I honestly don't understand what you are trying to achieve. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
.env file backup: soft means command backup of all env keys in one file without values, like in the env.example. It is helping to save a file with a new key and value for Stripe and other configurations for env secure save. Never forget to define variables in production. also update in git because, in the future, I forgot some variables in env at that time because of a problem finding code for env variable use.
And
make command for the env variable, because some developers use the env variable to direct code, but it is now the proper way because of the caching issue at that time. At that time, create env and code between in the config file, like STRIPE_KEY, then variable also in the config file stripe_key => env('STRIPE_KEY','')
Beta Was this translation helpful? Give feedback.
All reactions