PHPackages                             academe/laravel-queue-monitor - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. academe/laravel-queue-monitor

ActiveLibrary[Queues &amp; Workers](/categories/queues)

academe/laravel-queue-monitor
=============================

A Laravel package to monitor queue jobs.

2.0.2(6y ago)3331[2 issues](https://github.com/academe/laravel-queue-monitor/issues)MITPHP

Since Jan 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/academe/laravel-queue-monitor)[ Packagist](https://packagist.org/packages/academe/laravel-queue-monitor)[ RSS](/packages/academe-laravel-queue-monitor/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/c86604623b86b846179c71f5ffd3cd88247712e47dd537e41d16c75a765052c1/68747470733a2f2f706f7365722e707567782e6f72672f61636164656d652f6c61726176656c2d71756575652d6d6f6e69746f722f762f737461626c65)](https://packagist.org/packages/academe/laravel-queue-monitor)[![Total Downloads](https://camo.githubusercontent.com/b43093ad6fa2b3991b12deb697f915c7bccd0b8201d8ed968cdbe4754844100e/68747470733a2f2f706f7365722e707567782e6f72672f61636164656d652f6c61726176656c2d71756575652d6d6f6e69746f722f646f776e6c6f616473)](https://packagist.org/packages/academe/laravel-queue-monitor)[![Latest Unstable Version](https://camo.githubusercontent.com/fde7a2ab751ed86239f25a0a32c6febea5108035c1e978fd49557bdfa229cff6/68747470733a2f2f706f7365722e707567782e6f72672f61636164656d652f6c61726176656c2d71756575652d6d6f6e69746f722f762f756e737461626c65)](https://packagist.org/packages/academe/laravel-queue-monitor)[![License](https://camo.githubusercontent.com/4a2319f2964dfdb8cda998bd85ab8a2e0d87474eb22f27ba3a37bcc5c2f790e9/68747470733a2f2f706f7365722e707567782e6f72672f61636164656d652f6c61726176656c2d71756575652d6d6f6e69746f722f6c6963656e7365)](https://packagist.org/packages/academe/laravel-queue-monitor)

Laravel Queue Monitor
=====================

[](#laravel-queue-monitor)

A Laravel package to monitor queue jobs. Logs certain information about [queue jobs](https://laravel.com/docs/5.3/queues) in a database table:

- The elapsed time of the job including start and finish timestamps
- If `--tries` is being used the attempt number for each job
- If the job failed and the exception given (if available)
- Custom data (optional)

Requirements
------------

[](#requirements)

- Laravel 5.5+

*This is a fork of [gilbitron/laravel-queue-monitor](https://github.com/gilbitron/laravel-queue-monitor)I had some specific project requirements, but but no time to generate separate PRs for each change I've made to the original project, and no guarantee they would be accepted. So chose your branch according to your requirements :-)*

Install
-------

[](#install)

Install the composer package:

```
composer require academe/laravel-queue-monitor
```

Add the service provider in `config/app.php` (this step is not necessary for Laravel 5.5+):

```
/*
 * Package Service Providers...
 */
Academe\LaravelQueueMonitor\LaravelQueueMonitorProvider::class,
```

Run a migration to setup the `queue_monitor` database table:

```
php artisan migrate
```

Usage
-----

[](#usage)

All queue jobs will now be monitored and results stored to the `queue_monitor` database table. No other configuration is required.

### Custom Data

[](#custom-data)

To save custom data with the queue monitor results you need to include the `QueueMonitorData`trait in your Job and use the `saveQueueMonitorData()` method. For example:

```
