PHPackages                             akshay/laravel-url-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. akshay/laravel-url-maintenance

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

akshay/laravel-url-maintenance
==============================

The akshay/laravel-url-maintenance package allows you to easily put a specific URL or route of your Laravel application under maintenance or bring it back up. It provides Artisan commands to manage site maintenance on a per-route basis.

v1.0.1(1y ago)06MITPHPPHP ^8.0|^8.1|^8.2|8.3|8.4

Since Jan 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AkshayLib/akshay-laravel-url-maintenance)[ Packagist](https://packagist.org/packages/akshay/laravel-url-maintenance)[ RSS](/packages/akshay-laravel-url-maintenance/feed)WikiDiscussions master Synced 1mo ago

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

[![URL Down Package for Laravel](/art/socialcard.png)](/art/socialcard.png)

URL Down Package for Laravel
============================

[](#url-down-package-for-laravel)

What It Does
------------

[](#what-it-does)

The `url_down` package allows you to easily put a specific URL or route of your Laravel application under maintenance or bring it back up. It provides Artisan commands to manage site maintenance on a per-route basis.

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

[](#installation)

To install the package, run the following Composer command:

```
composer require akshay/laravel-url-maintenance
```

After installation, the service provider will be automatically registered if you're using Laravel 5.5 or later, thanks to package auto-discovery. For earlier versions of Laravel, you may need to add the service provider manually to your config/app.php file:

```
'providers' => [
    // Other Service Providers...
    Akshay\Url_down\UrlDownServiceProvider::class,
],
```

Next, publish the configuration file:

```
php artisan vendor:publish --provider="Akshay\Url_down\UrlDownServiceProvider"
```

This will publish the urldown.php configuration file to the config directory of your application.

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

[](#configuration)

The configuration file config/urldown.php contains the settings for this package:

```
return [
    'routes_path' => storage_path('framework/under_maintenance_routes.json'),
    'error_code' => 500,
];
```

- `routes_path:` The routes\_path is used to define the storage location for the route in the cache directory. You can customize this path to suit your project's structure.
- `error_code:` The HTTP status code to show when a route is down (default is 503).

You can modify these settings as per your needs.

Commands
--------

[](#commands)

This package provides two Artisan commands:

`php artisan route:down`

This command will set a specific route or URL as "under maintenance". It will ask you to select the route name, and then it will mark it as down, showing the maintenance message and error code specified in the configuration.

Usage:

```
php artisan route:down
```

After running the command, it will ask you to select the route name. Once a route is selected, it will be marked as down, and the configured error page will be displayed when that route is accessed.

`php artisan route:up`This command will bring a specific route or URL back online by removing it from maintenance mode. It will ask you to select the route name and remove it from the "under maintenance" state. Usage:

```
php artisan route:up
```

After running this command, the selected route will be restored, and it will no longer show the maintenance page.

How It Works
------------

[](#how-it-works)

- The package works by storing the "down" routes in a list (which can be stored in a file, database, or any other medium you prefer).

- When a route is marked as "down", an error page will be displayed with the specified HTTP error code and the maintenance message.
- If the route is brought back up, it will start functioning as normal.

Example Usage:
--------------

[](#example-usage)

- Run `php artisan route:down`, then select a route like `/some-page`. Now, any user visiting `/some-page` will see a `"Service Unavailable"` page (HTTP `503`).

- Run `php artisan route:up` to bring `/some-page` back online.

Laravel Framework Support
-------------------------

[](#laravel-framework-support)

This package is specifically designed to work with Laravel applications and will not function properly outside of the Laravel framework. Ensure you're using `Laravel 8.0` or later for automatic package discovery.

### Testing

[](#testing)

```
composer test
```

### Security

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [AKshay Patel](https://github.com/patelakshay3943)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance42

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~0 days

Total

2

Last Release

479d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60b857769fb4f440d833e5230c4295e0a4f4d0dd45e4c95d61445baab0964c9f?d=identicon)[patelakshay3943](/maintainers/patelakshay3943)

---

Top Contributors

[![patelakshay3943](https://avatars.githubusercontent.com/u/47743618?v=4)](https://github.com/patelakshay3943 "patelakshay3943 (22 commits)")

---

Tags

laravelakshaylaravel-url-maintenance

### Embed Badge

![Health badge](/badges/akshay-laravel-url-maintenance/health.svg)

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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