B
B
bernex2015-09-22 09:02:50
Laravel
bernex, 2015-09-22 09:02:50

How to implement job queue with time in laravel?

The essence of the problem: after registration, you need to create tasks to send a message immediately (the standard queue is fine), and for someone after 2 days, for someone at 9 am the next day.
It is convenient to specify the time when adding to the queue, but there is only a delay in seconds. Converting the week difference to seconds and sending it seems suboptimal.
How to solve such a problem and not reinvent the wheel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Evgrafovich, 2015-09-22
@Tantacula

Insert an expression with carbon into the delay() method, for example:
Or create a helper.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question