'when we send email with job and queue error occur

[when send emails shows these error][1]ReflectionException Method App\Mail\Newsletter::__invoke() does not exist

these is my controlledispatch(new Newsletter($emailSubject,$emailBody,$arrayEmails)); these is my email classpublic function build() { return $this->view('emails.newsletter')->subject($this->emailSubject)->with(['msg'=> $this->emailBody]); } these is my jobs public function handle() { $email = new Newsletter($this->emailSubject,$this->emailBody,$this->arrayEmails); Mail::to($this->arrayEmails)->send($email); }



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source