PHP code example of m-alsafadi / laravel-queue

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

    

m-alsafadi / laravel-queue example snippets


use \MAlsafadi\LaravelQueue\Traits\TLaravelQueueModel;

\App\Jobs\UserJob::addJob($model, $valid_at, $arguments, $name);

\App\Models\User::find(1)->addJob(\App\Jobs\UserJob::class, $valid_at, $arguments, $name);

LaravelQueue::addJob($model, \App\Jobs\UserJob::class, $valid_at, $arguments, $name);
shell
php artisan laravel:queue:job UserJob
shell
    php artisan larave:queue:start
    
shell
    php laravel-queue
    
shell
php artisan vendor:publish --provider=MAlsafadi\\LaravelQueue\\Providers\\LaravelQueueProvider
shell
php artisan laravel:queue
shell
php artisan laravel:queue:job
shell
php artisan laravel:queue:start