Skip to content

[12.x] Backport withMiddleware changes from 13.x#58798

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
jackbayliss:12.x-PreventRequestsDuringMaintenance-backport
Feb 13, 2026
Merged

[12.x] Backport withMiddleware changes from 13.x#58798
taylorotwell merged 1 commit intolaravel:12.xfrom
jackbayliss:12.x-PreventRequestsDuringMaintenance-backport

Conversation

@jackbayliss
Copy link
Contributor

@jackbayliss jackbayliss commented Feb 13, 2026

Addresses #58796 (comment)

This is just a cherry pick of the commit.

The afterResolving bit is to make sure the properties are set on PreventRequestsDuringMaintenance from what I remember.

…avel#58571)

* Update ApplicationBuilder.php

* Update DownCommand.php

* Update MaintenanceModeTest.php

* Update DownCommand.php

* Simplify middleware instantiation in afterResolving

* try both

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss jackbayliss marked this pull request as ready for review February 13, 2026 14:42
@taylorotwell taylorotwell merged commit 380846c into laravel:12.x Feb 13, 2026
72 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