定制 jeffersongoncalves/filament-refresh-sidebar 二次开发

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

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

jeffersongoncalves/filament-refresh-sidebar

Composer 安装命令:

composer require jeffersongoncalves/filament-refresh-sidebar

包简介

Automatically refresh the Filament sidebar navigation when certain events occur, ensuring menu items and badges are always up to date.

README 文档

README

Filament Refresh Sidebar

Filament Refresh Sidebar

Latest Version on Packagist GitHub Code Style Action Status Total Downloads License

Description

Filament Refresh Sidebar is a lightweight plugin designed to keep your Filament sidebar navigation in sync. It's particularly useful when you have dynamic navigation badges or menu items that depend on database changes, ensuring the sidebar updates automatically without a full page reload.

Requirements

  • PHP 8.2 or higher
  • Filament 5.0

Installation

You can install the package via composer:

composer require jeffersongoncalves/filament-refresh-sidebar

Usage

Register the plugin in your Filament Panel Provider (typically app/Providers/Filament/AdminPanelProvider.php):

use JeffersonGoncalves\Filament\RefreshSidebar\RefreshSidebarPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ... other configuration
        ->plugins([
            RefreshSidebarPlugin::make(),
        ]);
}

Automatic Refresh

The plugin automatically listens for database notifications via Laravel Echo (if configured) and triggers a sidebar refresh when a new notification is received.

Manual Refresh

You can also manually trigger a sidebar refresh from any Livewire component by dispatching the refresh-sidebar event:

$this->dispatch('refresh-sidebar');

This is useful for updating navigation badges after custom actions like creating, updating, or deleting records.

Development

You can run code analysis and formatting using the following commands:

# Run static analysis
composer analyse

# Format code
composer format

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固