Refactor mail-sender

This commit is contained in:
yogesh-gohil
2023-03-17 18:54:58 +05:30
parent aececb8575
commit dea73bcdf8
10 changed files with 99 additions and 67 deletions

View File

@ -30,7 +30,7 @@ class InvoiceViewedMail extends Mailable
*/
public function build()
{
return $this->from(config('mail.from.address'), config('mail.from.name'))
return $this->from($this->data['from_address'], $this->data['from_name'])
->markdown('emails.viewed.invoice', ['data', $this->data]);
}
}