You've already forked laravel-mail
Modifications
This commit is contained in:
@@ -149,7 +149,10 @@ class BluescaleMailTemplate implements \JsonSerializable
|
|||||||
*/
|
*/
|
||||||
public function attachments(array $attachments): BluescaleMailTemplate
|
public function attachments(array $attachments): BluescaleMailTemplate
|
||||||
{
|
{
|
||||||
$this->attachments = $attachments;
|
foreach ($attachments as $attachment) {
|
||||||
|
$this->addAttachment($attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user