We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.35.0
8.3.14
No response
Follow up for #53772
This implementation does work, but only if you don't use php artisan optimize or php artisan route:cache
php artisan optimize
php artisan route:cache
If you cache routes, then route definitions are restored from the cache. (check the first code snipped in the spoiler below)
And the closure that eventually excludes a health route from maintenance mode will never be executed.
framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
Lines 56 to 59 in 3903c5d
Lines 159 to 162 in 3903c5d
Lines 98 to 101 in 3903c5d
framework/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php
Lines 162 to 166 in 3903c5d
Lines 194 to 215 in 3903c5d
php artisan down
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Laravel Version
11.35.0
PHP Version
8.3.14
Database Driver & Version
No response
Description
Follow up for #53772
This implementation does work, but only if you don't use
php artisan optimize
orphp artisan route:cache
If you cache routes, then route definitions are restored from the cache. (check the first code snipped in the spoiler below)
And the closure that eventually excludes a health route from maintenance mode will never be executed.
Closure execution (spoiler)
framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
Lines 56 to 59 in 3903c5d
framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
Lines 159 to 162 in 3903c5d
framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
Lines 98 to 101 in 3903c5d
framework/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php
Lines 162 to 166 in 3903c5d
framework/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php
Lines 194 to 215 in 3903c5d
Steps To Reproduce
php artisan optimize
php artisan down
The text was updated successfully, but these errors were encountered: