PHPackages                             fatrex/filament-queue-tracker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fatrex/filament-queue-tracker

ActiveLibrary

fatrex/filament-queue-tracker
=============================

Background Jobs monitoring like Horizon for all drivers for Filament (v4)

v3.0.0(7mo ago)37.2k—7.5%2[1 issues](https://github.com/fatrex/filament-queue-tracker/issues)[2 PRs](https://github.com/fatrex/filament-queue-tracker/pulls)MITPHPPHP ^8.1|^8.2|^8.3|^8.4

Since Sep 24Pushed 7mo agoCompare

[ Source](https://github.com/fatrex/filament-queue-tracker)[ Packagist](https://packagist.org/packages/fatrex/filament-queue-tracker)[ Docs](https://github.com/fatrex/filament-queue-tracker)[ GitHub Sponsors](https://github.com/fatrex)[ RSS](/packages/fatrex-filament-queue-tracker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Background Jobs monitoring like Horizon for all drivers for FilamentPHP
=======================================================================

[](#background-jobs-monitoring-like-horizon-for-all-drivers-for-filamentphp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c405fb1ff46fa704c187130f661f92cfd26ad1b00ada3bc5bdcc186d5760e5a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661747265782f66696c616d656e742d71756575652d747261636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fatrex/filament-queue-tracker)[![Total Downloads](https://camo.githubusercontent.com/106982d23d71201134377f1a5208f59d8c3bdcb737ba6b14edf903548d508f6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661747265782f66696c616d656e742d71756575652d747261636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fatrex/filament-queue-tracker)

This is a package to monitor background jobs for FilamentPHP (v4). It is inspired by Laravel Horizon and is compatible with all drivers.

[![Screenshot 2023-09-13 at 23 18 44](https://github.com/fatrex/filament-queue-tracker/assets/1169456/a5d5a088-865f-4265-bd37-13dce213f529)](https://github.com/fatrex/filament-queue-tracker/assets/1169456/a5d5a088-865f-4265-bd37-13dce213f529)

[![Screenshot 2023-09-13 at 23 18 23](https://github.com/fatrex/filament-queue-tracker/assets/1169456/e0a7730e-f459-4d99-8a40-5f35337385eb)](https://github.com/fatrex/filament-queue-tracker/assets/1169456/e0a7730e-f459-4d99-8a40-5f35337385eb)

Installation
------------

[](#installation)

Check your FilamentPHP version before installing:

PackageFilamentPHPPHP3.\*4.\*&gt;= 8.1> Acknowledgements &amp; Filament v3 users
>
> Huge thanks to the original creator and maintainer, [Croustibat](https://github.com/croustibat). This package now targets Filament v4 only. If you need Filament v3 support, please use the original library: [croustibat/filament-jobs-monitor](https://github.com/croustibat/filament-jobs-monitor) (v2.\*).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](./CHANGELOG.md) for local changes in this fork (v4-only).

Installation
------------

[](#installation-1)

Install the package via composer:

```
composer require fatrex/filament-queue-tracker
```

Publish and run the migrations using:

```
php artisan vendor:publish --tag="filament-queue-tracker-migrations"
php artisan migrate
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

The global plugin config can be published using the command below:

```
php artisan vendor:publish --tag="filament-queue-tracker-config"
```

This is the content of the published config file:

```
return [
    'resources' => [
        'enabled' => true,
        'label' => 'Job',
        'plural_label' => 'Jobs',
        'navigation_group' => 'Settings',
        'navigation_icon' => 'heroicon-o-cpu-chip',
        'navigation_sort' => null,
        'navigation_count_badge' => false,
        'resource' => Fatrex\FilamentQueueTracker\Resources\QueueMonitorResource::class,
    ],
    'pruning' => [
        'enabled' => true,
        'retention_days' => 7,
    ],
    'queues' => [
        'default'
    ],
];
```

**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

[](#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 :

```
$ php artisan make:model MyQueueMonitor
```

Then you can extend the model by adding your own methods :

```
