Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question