Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Add an option to remove the original environment file after encrypting #51556

Merged
merged 3 commits into from
May 24, 2024

Conversation

riasvdv
Copy link
Contributor

@riasvdv riasvdv commented May 24, 2024

When managing environment files for multiple environments, it's useful to be able to remove the original file when encrypting to prevent outdated environment files from sticking around.

This adds an extra --prune option to the php artisan env:encrypt command that instantly removes the original environment file after encrypting.

php artisan env:encrypt --env=production --prune

Similar tools like git-secret remove the original file by default.

@taylorotwell
Copy link
Member

Can we align the option name with other similar options? I think we use prune on migration squashing.

@riasvdv
Copy link
Contributor Author

riasvdv commented May 24, 2024

@taylorotwell renamed!

@taylorotwell taylorotwell merged commit e2d55af into laravel:11.x May 24, 2024
28 checks passed
@riasvdv riasvdv deleted the remove-env-after-encrypt branch May 24, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants