Download Latest Version v5.0.0 source code.zip (509.1 kB)
Email in envelope

Get an email when there's a new version of Laravel Queue Monitor

Home / 2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2020-03-27 1.2 kB
v2.0.0 source code.tar.gz 2020-03-27 9.0 kB
v2.0.0 source code.zip 2020-03-27 17.8 kB
Totals: 3 Items   28.1 kB 0

Upgrading to 2.0 from 1.0

Database

Add the following fields to your queue monitor table:

  • exception_message (string, nullable)
  • exception_class (long text, nullable)

The Job Trait

The job trait has been renamed to a more intuitive name.

:::diff
- use romanzipp\QueueMonitor\Traits\QueueMonitor;
+ use romanzipp\QueueMonitor\Traits\IsMonitored;

The Monitor Model

Changed Methods

:::diff
- $monitor->basename()
- $monitor->basename
+ $monitor->getBasename()

:::diff
- $monitor->parsed_data
+ $monitor->getData()

:::diff
- $monitor->remaing_seconds
+ $monitor->getRemainingSeconds()

:::diff
- $monitor->startedAtExact()
+ $monitor->getStartedAtExact()

:::diff
- $monitor->finishedAtExact()
+ $monitor->getFinishedAtExact()

:::diff
- $monitor->isSucceeded()
+ $monitor->hasSucceeded()

The getRemainingSeconds() method now always returns a float instead of float|null,

:::diff
- public function getRemainingSeconds(): ?float
+ public function getRemainingSeconds(): float

New Methods

:::diff
+ $monitor->hasFailed()
Source: README.md, updated 2020-03-27