PHPackages                             tanedaa/laravel-dynamic-maintenance - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tanedaa/laravel-dynamic-maintenance

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tanedaa/laravel-dynamic-maintenance
===================================

A Laravel package to enable maintenance mode for specific named routes

1.2.0(1y ago)28MITBladePHP ^8.1

Since Aug 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tanedaa/laravel-dynamic-maintenance)[ Packagist](https://packagist.org/packages/tanedaa/laravel-dynamic-maintenance)[ RSS](/packages/tanedaa-laravel-dynamic-maintenance/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Dynamic Maintenance
===========================

[](#laravel-dynamic-maintenance)

A simple package to allow enabling maintenance mode for specific named routes.

Installation
------------

[](#installation)

Require this package with composer. Works for Laravel 10 and above. Not tested for other versions.

```
composer require tanedaa/laravel-dynamic-maintenance
```

Publish the commands, middleware and custom maintenance view

```
php artisan vendor:publish --tag=laravel-dynamic-maintenance
```

Register the `maintenance` middleware to the routes you want to enable dynamic maintenance on.

```
Route::middleware('maintenance')->group(function () {
    Route::get('/', function () {
        return view('welcome');
    });
});
```

Usage
-----

[](#usage)

Enable or disable maintenance mode for specific named routes by providing a comma-separated list of routes to the following commands. Wildcard routes are supported as well. Optionally, you can provide a secret key to bypass maintenance mode.

```
php artisan down:routes {routes} {--secret}
php artisan up:routes {routes} | all
```

To bypass maintenance mode, add a query parameter `secret` with the secret key you provided when enabling maintenance mode.

```
http://example.com/home?secret=mySecretKey
```

Examples
--------

[](#examples)

```
php artisan down:routes welcome, home.contact
php artisan down:routes home.about --secret=mySecretKey
php artisan down.routes api/*
```

```
php artisan up:routes home.index, home.contact
php artisan up.routes api/*
php artisan up.routes all
```

Configuration
-------------

[](#configuration)

Optionally, you can change the maintenance mode Title, Message and HTTP Code in the custom view for the dynamic maintenance routes by adding the following variables to your .env file:

```
MAINTENANCE_TITLE = 'Service Unavailable'
MAINTENANCE_MESSAGE = 'Service Unavailable'
MAINTENANCE_CODE = 503
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

691d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28830695?v=4)[Taneda](/maintainers/tanedaa)[@tanedaa](https://github.com/tanedaa)

### Embed Badge

![Health badge](/badges/tanedaa-laravel-dynamic-maintenance/health.svg)

```
[![Health](https://phpackages.com/badges/tanedaa-laravel-dynamic-maintenance/health.svg)](https://phpackages.com/packages/tanedaa-laravel-dynamic-maintenance)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
