Skip to content

[6.x] Replace system status with maintenance mode - #19513

Merged
brandonkelly merged 16 commits into
6.xfrom
rias/cms-162-system-status-refactoring
Aug 31, 2026
Merged

[6.x] Replace system status with maintenance mode#19513
brandonkelly merged 16 commits into
6.xfrom
rias/cms-162-system-status-refactoring

Conversation

@riasvdv

@riasvdv riasvdv commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Description

Completely replace Craft system status with Laravel maintenance mode. We already partly had this before but we still had the system.live status as well, this completely removes system.live in favor of purely Laravel's maintenance mode.

I've tried to do this without needing to override Laravel's default middleware, but our logic was a bit too specific for this. Replacing the built-in middleware is very rare to do in a Laravel project, so running into an issue with a host app replacing it won't happen often, if at all.

I've also audited all 5.x routes that were allowed when the system was offline, which surfaced a few I missed before.

Adds Route::allowDuringMaintenance() to the route registration, so allowing routes is more straightforward and doesn't separate the excluding (which was in RouteServiceProvider before) from the route registration. The middleware now gathers all routes with that exclusion metadata.

This uses Laravel's new route metadata feature so the Laravel requirement has bumped to 13.17

@linear-code

linear-code Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

CMS-162

@github-actions

github-actions Bot commented Aug 29, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

Changed components:

resources/jsopen Storybook

No changed components detected in this Storybook.

@riasvdv
riasvdv requested a review from brandonkelly August 31, 2026 09:27
@riasvdv
riasvdv marked this pull request as ready for review August 31, 2026 09:28
@brandonkelly
brandonkelly merged commit 2122ff2 into 6.x Aug 31, 2026
23 checks passed
@brandonkelly
brandonkelly deleted the rias/cms-162-system-status-refactoring branch August 31, 2026 19:28
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