V
V
Vladislav Nagorny2017-10-09 17:27:34
Message Queues
Vladislav Nagorny, 2017-10-09 17:27:34

Laravel queues how to condition return a task?

Good afternoon
How to return the task from the timers in n minutes?

public function handle()
    {
        $check = false;
        if(!$check){
            Order::dispatch($this->order)->delay(Carbon::now()->addMinutes(5));
        }
        ...
    }

But that doesn't work

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