1. Go to this page and download the library: Download nht/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/ */
nht / queue-monitor example snippets
Gate::define('viewQueueMonitor', function ($user) {
return $user->isAdmin();
});
// Check for alert thresholds every 5 minutes
$schedule->command('queue-monitor:check-alerts')->everyFiveMinutes();
// Run health checks every 10 minutes
$schedule->command('queue-monitor:health')->everyTenMinutes();
// Prune old data daily
$schedule->command('queue-monitor:prune')->daily();