Download the PHP package jeffersongoncalves/filament-refresh-sidebar without Composer
On this page you can find all versions of the php package jeffersongoncalves/filament-refresh-sidebar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/filament-refresh-sidebar
More information about jeffersongoncalves/filament-refresh-sidebar
Files in jeffersongoncalves/filament-refresh-sidebar
Package filament-refresh-sidebar
Short Description Automatically refresh the Filament sidebar navigation when certain events occur, ensuring menu items and badges are always up to date.
License MIT
Homepage https://github.com/jeffersongoncalves/filament-refresh-sidebar
Informations about the package filament-refresh-sidebar
Filament Refresh Sidebar
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:
Usage
Register the plugin in your Filament Panel Provider (typically app/Providers/Filament/AdminPanelProvider.php):
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 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:
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
- Jèfferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-refresh-sidebar with dependencies
filament/filament Version ^5.3
spatie/laravel-package-tools Version ^1.14.0