Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Under Maintenance Bundle Laravel Package

cvr/under-maintenance-bundle

View on GitHub
Deep Wiki
Context7

Under Maintenance Bundle

Installation

Install it via composer

composer require cvr/under-maintenance-bundle

Register the bundle

Register bundle into config/bundles.php:

return [
    //.....
    Cvr\UnderMaintenanceBundle\UnderMaintenanceBundle::class => ['all' => true],
];

Usage

Enable maintenance and configure your token in your .env:

###< cvr/under-maintenance-bundle ###
# Maintenance mode (0=disabled and 1=enabled)
MAINTENANCE=1
MAINTENANCE_TOKEN=<your-token>
###< cvr/under-maintenance-bundle ###

Access your site with the maintenance token

http://your-domain?maintenance=<your-token>

Override Maintenance Templates

Create new folder named UnderMaintenanceBundle in your templates/bundles/ application and create new twig template maintenance.html.twig.

Then, don't forget to clear the cache php bin/console cache:clear

├── bin/
├── config/
├── public/
├── src/
├── templates/
│   └── bundles/
│       └── UnderMaintenanceBundle/
│           └── maintenance.html.twig
├── tests/
├── translations/
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity