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 1mo ago

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

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

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

637d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f47b2fad677caf0bf39204434863a919a2c1ca8a9432de16d1882d8af895bc5?d=identicon)[tanedaa](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M211](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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