A
A
Alexey Markov2018-11-13 16:14:33
Laravel
Alexey Markov, 2018-11-13 16:14:33

How to get queue task id in controller in laravel 5.7?

Good day.
I use queues in api, in the old documentation examples 5.2, 5.5 is done by running the dispatcher in the controller.
Now, using the last construction, is it possible to somehow get idthe tasks?
$job = JobClass::dispatch($classDataObject);
$jobreturns empty.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question