Update 'src/MailTemplate.php'
This commit is contained in:
parent
e55b5192fd
commit
b5e447ed15
|
@ -160,7 +160,7 @@ class MailTemplate implements \JsonSerializable
|
||||||
public function attachments(array $attachments): MailTemplate
|
public function attachments(array $attachments): MailTemplate
|
||||||
{
|
{
|
||||||
foreach ($attachments as $attachment) {
|
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;
|
return $this;
|
||||||
|
|
Loading…
Reference in New Issue