Download the PHP package fatrex/filament-queue-tracker without Composer
On this page you can find all versions of the php package fatrex/filament-queue-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fatrex/filament-queue-tracker
More information about fatrex/filament-queue-tracker
Files in fatrex/filament-queue-tracker
Package filament-queue-tracker
Short Description Background Jobs monitoring like Horizon for all drivers for Filament (v4)
License MIT
Homepage https://github.com/fatrex/filament-queue-tracker
Informations about the package filament-queue-tracker
Background Jobs monitoring like Horizon for all drivers for FilamentPHP
This is a package to monitor background jobs for FilamentPHP (v4). It is inspired by Laravel Horizon and is compatible with all drivers.
Installation
Check your FilamentPHP version before installing:
| Package | FilamentPHP | PHP |
|---|---|---|
| 3.* | 4.* | >= 8.1 |
Acknowledgements & Filament v3 users
Huge thanks to the original creator and maintainer, Croustibat. This package now targets Filament v4 only. If you need Filament v3 support, please use the original library: croustibat/filament-jobs-monitor (v2.*).
Changelog
See CHANGELOG.md for local changes in this fork (v4-only).
Installation
Install the package via composer:
Publish and run the migrations using:
Usage
Configuration
The global plugin config can be published using the command below:
This is the content of the published config file:
NOTE: Since there isn't a universal way to retrieve all used queues, it's necessary to define them to obtain all pending jobs.
Extending Model
Sometimes it's useful to extend the model to add some custom methods. You can do it by extending the model by creating your own model :
Then you can extend the model by adding your own methods :
Using Filament Panels
If you are using Filament Panels, you can register the Plugin to your Panel configuration. This will register the plugin's resources as well as allow you to set configuration using optional chainable methods.
For example in your app/Providers/Filament/AdminPanelProvider.php file:
Usage
Just run a Background Job and go to the route /admin/queue-monitors to see the jobs.
Example
Go to example folder to see a Job example file.
Then you can call your Job with the following code:
Enabling navigation
Or you can use a closure to enable navigation only for specific users:
Note for Filament v3 users
This package now targets Filament v4 only. If you need Filament v3 support, please use the original library we forked from: croustibat/filament-jobs-monitor (v2.*).
All versions of filament-queue-tracker with dependencies
filament/filament Version ^4.0
illuminate/contracts Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.15.0