Answer the question
In order to leave comments, you need to log in
Why doesn't functionality work in Laravel Job?
In general, I have such a Job
public function handle()
{
$data = $this->data;
// шлем письмо
Mail::send('emails.mailing', $data['content'], function($message) use ($data)
{
$message->from(env('MAIL_FROM_ADDRESS'), "name");
$message->to($data['to']);
$message->subject($data['subject']);
});
// логгируем отправленное письмо
$log = new MailingLog;
$log->data = json_encode($data);
$log->save();
return;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question