Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

delay queue laravel

$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";
       }
 
PREVIOUS NEXT
Tagged: #delay #queue #laravel
ADD COMMENT
Topic
Name
2+6 =