PHP code example of ejunker / laravel-queue-monitor

1. Go to this page and download the library: Download ejunker/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/ */

    

ejunker / laravel-queue-monitor example snippets


'providers' => [
    ...
    Tremby\QueueMonitor\ServiceProvider::class,
],

Route::get('queue-monitor', function () {
    return Response::view('queue-monitor::status-page');
});

Route::get('queue-monitor.json', function () {
    $response = Response::view('queue-monitor::status-json', [
        'options' => \JSON_PRETTY_PRINT,
    ]);
    $response->header('Content-Type', 'application/json');
    return $response;
});