PHP code example of shamiao / l4mysqlqueue

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

    

shamiao / l4mysqlqueue example snippets


    'default' => 'mysql', // ... or any connection name you like

    'mysql' => array(
        'driver' => 'mysql',
        'queue'  => 'default', // Optional
        'table'  => 'queue',  // Optional
    ),

php artisan migrate --package="shamiao/l4mysqlqueue"

* * * * * ( cd /home/username/your/laravel/dir; php artisan queue:work --tries=3; )