Задержка очереди Ларавел
$emails = array('emails' => [
'amit@gmail.com',
'sumit@gmail.com',
'satpal@gmail.com',
'rishav@gmail.com',
]
);
foreach ($emails as $email){
$details = ['email' => $email];
$emailJobs = (new TestSendEmail($details))->delay(10);
$this->dispatch($emailJobs);
echo "Queue Email Send Sucessfully";
}
Tyagi420