I am willing to send email to list of email address using queue. Without using queue my code is working fine but with queue it\'s showing following error:
queue
Try removing this line from constructor:
$this->message = new Message();
and, in the handle directly initialise it.
$student = $this->data; $arrStudent = (new Message())->getEmailAddressList($student); Mail::to($arrStudent)->send(new MessageSent($student));