Add name in From field.

This commit is contained in:
mdpoulter
2020-01-27 14:50:56 +02:00
parent 3401ca049e
commit 8ce7e14a02
8 changed files with 22 additions and 78 deletions

View File

@ -31,6 +31,8 @@ class InvoiceViewed extends Mailable
public function build()
{
$email = $this->data['user']['email'];
return $this->from($email)->markdown('emails.viewed.invoice', ['data', $this->data]);
$name = $this->data['user']['name'];
return $this->from($email, $name)
->markdown('emails.viewed.invoice', ['data', $this->data]);
}
}