8000 [11.x] Allow secret key Updates Without Bringing the Site Up by rashidlaasri · Pull Request #54389 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[11.x] Allow secret key Updates Without Bringing the Site Up #54389

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

Merged
merged 1 commit into from
Jan 28, 2025
Merged

[11.x] Allow secret key Updates Without Bringing the Site Up #54389

merged 1 commit into from
Jan 28, 2025

Conversation

rashidlaasri
Copy link
Contributor

Hi everyone,

This PR introduces a minor but impactful change that is fully backward compatible. The update ensures the command exits early only if neither the --secret nor --with-secret arguments are provided.

Why this change?

Currently, if you have a high-traffic site that isn’t officially launched and you need to update the secret, you'd have to run:

php artisan up && php artisan down --secret="laravel"  

This briefly brings the site live for a few milliseconds or seconds, which may not be ideal. With this change, you can update the secret while the site remains in maintenance mode, avoiding any public access during the update.

It’s a small tweak that makes it easier to update the secret without needing to bring the site up and down again.

Let me know what you think!

@rashidlaasri rashidlaasri changed the title Allow secret key Updates Without Bringing the Site Up [11.x] Allow secret key Updates Without Bringing the Site Up Jan 28, 2025
@taylorotwell taylorotwell merged commit 33d61c4 into laravel:11.x Jan 28, 2025
40 checks passed
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
0