You've already forked laravel-mail
Modifications
This commit is contained in:
@@ -153,6 +153,16 @@ class BluescaleMailTemplate implements \JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function addAttachment($file, $filename = null)
|
||||
{
|
||||
$file = is_object($file) && method_exists($file, 'getRealPath') ? $file->getRealPath() : $file;
|
||||
|
||||
$this->attachments[] = [
|
||||
'file' => $file,
|
||||
'filename' => $filename ?? basename($file)
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param string $value
|
||||
|
||||
Reference in New Issue
Block a user