DONE: layout letter with letterhead and footer, notification for newly...
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications\Concerns;
|
||||
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
|
||||
trait BuildsMailMessage
|
||||
{
|
||||
protected function mailMessage(string $subject, string $view, array $data = []): MailMessage
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject($subject)
|
||||
->markdown($view, array_merge([
|
||||
'logoPath' => config('mail.logo_path'),
|
||||
], $data));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user