定制 albertofuentes/filament-maintenance 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

albertofuentes/filament-maintenance

最新稳定版本:v1.0.0-beta.1

Composer 安装命令:

composer require albertofuentes/filament-maintenance

包简介

Enable maintenance mode per Filament panel with configurable access exceptions, customizable downtime pages, and audit history.

README 文档

README

Filament Maintenance lets you enable maintenance mode per Filament panel, with access exceptions for IP addresses, CIDR ranges, manager users, and Spatie Permission roles.

Installation

composer require albertofuentes/filament-maintenance

Publish and run the migrations:

php artisan vendor:publish --tag="filament-maintenance-migrations"
php artisan migrate

Optionally publish the config and views:

php artisan vendor:publish --tag="filament-maintenance-config"
php artisan vendor:publish --tag="filament-maintenance-views"

Usage

Register the plugin in the Filament panel where you want maintenance mode:

use Albertofuentes\FilamentMaintenance\FilamentMaintenancePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(FilamentMaintenancePlugin::make());
}

The plugin adds:

  • A maintenance switch near the user menu for allowed managers.
  • A maintenance settings page inside the panel.
  • Middleware that blocks the panel when maintenance is enabled.
  • A customizable 503 maintenance view.
  • Audit events for enable, disable and settings updates.

Permissions

Managers can be configured from the settings page by selecting users or Spatie role names. The package also allows users with the Laravel permission manage-filament-maintenance.

While no manager users or manager roles are configured for a panel, authenticated users can access the settings page so the first configuration can be completed.

Testing

composer test

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-11