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 today

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

27

—

LowBetter than 47% of packages

Maintenance42

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

480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20683047?v=4)[Abiruzzaman Molla](/maintainers/AbiruzzamanMolla)[@AbiruzzamanMolla](https://github.com/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.8k54.9M11.6k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[aimeos/laravel-nestedset

Nested Set Model for Laravel

3714.4k6](/packages/aimeos-laravel-nestedset)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

492.8k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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