changed attachment to fromPath

This commit is contained in:
Martin Folkerts 2024-07-09 16:36:46 +02:00
parent b424d865c4
commit 11f2053e77

View file

@ -79,8 +79,8 @@ public function attachments(): array
$mime = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
}
return Attachment::fromStorage(
(string) $attachment_path
return Attachment::fromPath(
$attachment_path
)
->as($attachment->path)
->withMime($mime);