PHP code example of ph4r05 / laravel-queue-database-ph4

1. Go to this page and download the library: Download ph4r05/laravel-queue-database-ph4 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/ */

    

ph4r05 / laravel-queue-database-ph4 example snippets



// config/queue.php

return [
    'database_ph4' => [
        'driver' => 'database_ph4',
        'table' => 'jobs_ph4',
        'queue' => 'default',
        'retry_after' => 4,
        'num_workers' => 1,
        'window_strategy' => 1,
    ],
];
bash
php artisan queue_ph4:table
php artisan migrate