Skip to content

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