update: add test send mail

This commit is contained in:
tokumeikoi
2021-11-30 16:23:46 +08:00
parent 05769ea591
commit 30aec3d8e9
4 changed files with 22 additions and 18 deletions

View File

@ -60,11 +60,15 @@ class SendEmailJob implements ShouldQueue
$error = $e->getMessage();
}
MailLog::create([
$log = [
'email' => $params['email'],
'subject' => $params['subject'],
'template_name' => $params['template_name'],
'error' => isset($error) ? $error : NULL
]);
];
MailLog::create($log);
$log['config'] = config('mail');
return $log;
}
}