You've already forked laravel-mail
Modifying addAttachment()
This commit is contained in:
@@ -158,7 +158,7 @@ class BluescaleMailTemplate implements \JsonSerializable
|
||||
$file = is_object($file) && method_exists($file, 'getRealPath') ? $file->getRealPath() : $file;
|
||||
|
||||
$this->attachments[] = [
|
||||
'file' => $file,
|
||||
'path' => $file,
|
||||
'filename' => $filename ?? basename($file)
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user