PHP code example of jaydeep / laravel-queue-monitor
1. Go to this page and download the library: Download jaydeep/laravel-queue-monitor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jaydeep / laravel-queue-monitor example snippets
use Jaydeep\QueueMonitor\Models\MonitoredJob;
MonitoredJob::failed()->latest()->take(10)->get();
MonitoredJob::completed()->count();
MonitoredJob::pending()->get(); // queued + running
bash
php artisan vendor:publish --tag=queue-monitor-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=queue-monitor-config
php artisan vendor:publish --tag=queue-monitor-views
GET /queue-monitor/stats?page=2&per_page=15