Skip to content

Commit

Permalink
refact: email provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed May 29, 2024
1 parent 264aaa7 commit 85a3ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Kanvas/Notifications/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Notification extends LaravelNotification implements EmailInterfaces, Shoul
protected ?UserInterface $fromUser = null;
protected ?UserInterface $toUser = null;
protected ?CompanyInterface $company = null;
public ?array $pathAttachment = null;

public array $channels = [
'mail',
Expand Down Expand Up @@ -149,7 +150,7 @@ public function toMail($notifiable): ?MailMessage

$fromEmail = $fromMail['address'];
$fromName = $fromMail['name'];

$mailMessage = (new MailMessage())
->mailer($mailer)
->from($fromEmail, $fromName)
Expand Down

0 comments on commit 85a3ae9

Please sign in to comment.