PHPackages                             azmolla/maintenance-mode - 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. [Database &amp; ORM](/categories/database)
4. /
5. azmolla/maintenance-mode

ActiveLibrary[Database &amp; ORM](/categories/database)

azmolla/maintenance-mode
========================

Laravel Maintenance Mode Extension with Database Configuration

1.0.0(1y ago)01MITPHPPHP ^8.0||^8.1||^8.2

Since Mar 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AbiruzzamanMolla/maintenance-mode-laravel)[ Packagist](https://packagist.org/packages/azmolla/maintenance-mode)[ Docs](https://github.com/AbiruzzamanMolla/maintenance-mode-laravel)[ RSS](/packages/azmolla-maintenance-mode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Maintenance Mode for Laravel
============================

[](#maintenance-mode-for-laravel)

This package provides a simple way to enable and disable maintenance mode for your Laravel application.

Version
-------

[](#version)

[![Latest Stable Version](https://camo.githubusercontent.com/c8eb05c9963f8ad4af6275838515249871483463b40780e065f2fd607c86eedc/68747470733a2f2f706f7365722e707567782e6f72672f617a6d6f6c6c612f6d61696e74656e616e63652d6d6f64652f762f737461626c65)](https://packagist.org/packages/azmolla/maintenance-mode)

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

[](#installation)

You can install the package via composer:

```
composer require azmolla/maintenance-mode
```

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

[](#configuration)

After installing the package, publish the configuration file and assets:

```
php artisan maintenance-mode:publish
```

This will publish the configuration file to `config/maintenance-mode.php`, the views to `resources/views/vendor/maintenance-mode`, and the assets to `public/vendor/maintenance-mode`.

Usage
-----

[](#usage)

### Middleware

[](#middleware)

Add the maintenance-mode middleware to your web middleware group in `app/Http/Kernel.php`:

```
protected $middlewareGroups = [
    'web' => [
        // Other middleware
        \Azmolla\MaintenanceMode\Http\Middleware\CheckMaintenanceMode::class,
    ],
];
```

### Routes

[](#routes)

The package provides routes for managing maintenance mode settings. These routes are defined in `src/routes/web.php`:

```
Route::prefix('admin/maintenance')->middleware(['web', 'auth'])->group(function () {
    Route::get('/', [\Azmolla\MaintenanceMode\Controllers\MaintenanceModeController::class, 'index'])->name('admin.maintenance.index');
    Route::post('/update', [\Azmolla\MaintenanceMode\Controllers\MaintenanceModeController::class, 'update'])->name('admin.maintenance.update');
});
```

### Views

[](#views)

The package provides views for displaying and managing maintenance mode settings. These views are located in `src/resources/views`.

### Database

[](#database)

The package includes a migration for creating the `maintenance_mode` table. Run the migration:

```
php artisan migrate
```

Commands
--------

[](#commands)

The package provides a command for publishing resources:

```
php artisan maintenance-mode:publish
```

Change Log
----------

[](#change-log)

### v1.0.0

[](#v100)

- Initial release

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

Author
------

[](#author)

- [Abiruzzaman Molla](https://www.linkedin.com/in/abiruzzamanmolla/)

Contributing
------------

[](#contributing)

Feel free to submit issues or pull requests. For major changes, please open an issue first to discuss what you would like to change.

Support
-------

[](#support)

If you have any questions or need support, please open an issue on the [GitHub repository](https://github.com/AbiruzzamanMolla/azmolla-maintenance-mode-laravel/issues).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance45

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b41cb18525b16c14035754555d6bb1b1a04f4684e00b72ba571e1f0e2f283b61?d=identicon)[AbiruzzamanMolla](/maintainers/AbiruzzamanMolla)

---

Top Contributors

[![AbiruzzamanMolla](https://avatars.githubusercontent.com/u/20683047?v=4)](https://github.com/AbiruzzamanMolla "AbiruzzamanMolla (5 commits)")

---

Tags

laraveldatabasemaintenancemode

### Embed Badge

![Health badge](/badges/azmolla-maintenance-mode/health.svg)

```
[![Health](https://phpackages.com/badges/azmolla-maintenance-mode/health.svg)](https://phpackages.com/packages/azmolla-maintenance-mode)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[tpetry/laravel-query-expressions

Database-independent Query Expressions as a replacement to DB::raw calls

357436.5k2](/packages/tpetry-laravel-query-expressions)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.0k1](/packages/illuminatech-config)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[vectorial1024/laravel-cache-evict

Efficiently remove expired Laravel file/database cache data

5813.2k](/packages/vectorial1024-laravel-cache-evict)

PHPackages © 2026

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