Add more descriptive subject lines.

This commit is contained in:
mdpoulter
2020-01-27 14:45:40 +02:00
parent 3cd975dbbd
commit 5dcc7b9efd
3 changed files with 12 additions and 3 deletions

View File

@ -32,6 +32,9 @@ class EstimatePdf extends Mailable
*/
public function build()
{
return $this->from($this->notificationEmail)->markdown('emails.send.estimate', ['data', $this->data]);
$company = $this->data['company']['name'];
return $this->from($this->notificationEmail)
->subject("Estimate from $company")
->markdown('emails.send.estimate', ['data', $this->data]);
}
}

View File

@ -33,6 +33,9 @@ class PaymentPdf extends Mailable
*/
public function build()
{
return $this->from($this->notificationEmail)->markdown('emails.send.payment', ['data', $this->data]);
$company = $this->data['company']['name'];
return $this->from($this->notificationEmail)
->subject("Payment from $company")
->markdown('emails.send.payment', ['data', $this->data]);
}
}

View File

@ -32,6 +32,9 @@ class invoicePdf extends Mailable
*/
public function build()
{
return $this->from($this->notificationEmail)->markdown('emails.send.invoice', ['data', $this->data]);
$company = $this->data['company']['name'];
return $this->from($this->notificationEmail)
->subject("Invoice from $company")
->markdown('emails.send.invoice', ['data', $this->data]);
}
}