PHP code example of relaxsd / l4-database-queue

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

    

relaxsd / l4-database-queue example snippets

`
    'providers' => array(

         /* Make sure to add after QueueServiceProvider */
         'Relaxsd\Queue\L4DatabaseServiceProvider'

    ),
`
   /*
    |--------------------------------------------------------------------------
    | Default Queue Driver
    |--------------------------------------------------------------------------
    */

    'default'     => 'database',

    /*
    |--------------------------------------------------------------------------
    | Queue Connections
    |--------------------------------------------------------------------------
    */

    'connections' => array(

        ...
        
        'database'   => array(
            'driver' => 'database',
            'table' => 'jobs',
            'queue' => 'default',
            'retry_after' => 90,
        )

    )