PHP code example of garbetjie / laravel-database-queue

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

    

garbetjie / laravel-database-queue example snippets



// In config/queue.php:

return [
    'connections' => [
        'database' => [
            'driver' => 'database-garbetjie',
            'table' => 'jobs',
            'queue' => 'default',
            'retry_after' => 60,
            'prefetch' => 5,
            'shuffle' => true,
        ]
    ], 
];

php artisan garbetjie:database-queue:table
php artisan migrate

php artisan garbetjie:database-queue:table-job-counts
php artisan migrate