j3rrey/lumen-5-maintenance-mode 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

j3rrey/lumen-5-maintenance-mode

Composer 安装命令:

composer require j3rrey/lumen-5-maintenance-mode

包简介

Define application maintenance mode.

README 文档

README

Build Status

php 7.2 Lumen 5.8

How to install

composer require j3rrey/lumen-5-maintenance-mode

How to configure

Add this to your AppServiceProvider or in bootstrap/app.php

$app->register(
    j3rrey\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class
);

Add the up and down commands in app/console/Kernel.php

    protected $commands = [
        \j3rrey\MaintenanceMode\Console\Commands\DownCommand::class,
        \j3rrey\MaintenanceMode\Console\Commands\UpCommand::class
    ];

Customize View

In case there is no 503 view file you will be asked if it should be created for you when putting your application in maintenance mode.

Example views at the bottom

resources/views/errors/503.blade.php

Maintenance Mode on

php artisan down

Maintenance Mode off

php artisan up

IP based access

Currently only ipv4 and no ipranges

Add ALLOWED_IPS in your .env file

ALLOWED_IPS=192.168.1.2,127.0.0.1,136.22.16.0

Features planned:

  • Ip Ranges,
  • Maintenance without view options
  • Dynamic DNS Ip Filtering

Example view

Laravel 503 blade file(2016): https://github.com/laravel/laravel/blob/696ab5149e6b6169f73b75321eaabf47a4a26645/resources/views/errors/503.blade.php

Default View:

Default View

统计信息

  • 总下载量: 174
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固