You've already forked laravel-mail-templates
Update 'src/MailTemplate.php'
This commit is contained in:
@@ -160,7 +160,7 @@ class MailTemplate implements \JsonSerializable
|
||||
public function attachments(array $attachments): MailTemplate
|
||||
{
|
||||
foreach ($attachments as $attachment) {
|
||||
$this->addAttachment($attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
|
||||
$this->addAttachment($attachment['url'] ?? $attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user