fix notifications (#109)

This commit is contained in:
Saeed Vaziry
2024-02-16 21:54:51 +01:00
committed by GitHub
parent f70963d6bb
commit 9db310a06b
14 changed files with 20 additions and 12 deletions

View File

@ -51,8 +51,7 @@ public function send(object $notifiable, Notification $notification): void
{
/** @var NotificationChannel $notifiable */
$this->notificationChannel = $notifiable;
$message = $notification->toMail($notifiable);
$message = $notification->toEmail($notifiable);
Mail::to($this->data()['email'])->send(
new NotificationMail($message->subject, $message->render())
);