Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

job with queue name in laravel

// You can disaptch a job with queue name as following
dispatch(new YourJob())->onQueue('my_queue');

// to make it work
php artisan queue:work --queue=my_queue
 
PREVIOUS NEXT
Tagged: #job #queue #laravel
ADD COMMENT
Topic
Name
7+9 =