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'; $mime = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
} }
return Attachment::fromStorage( return Attachment::fromPath(
(string) $attachment_path $attachment_path
) )
->as($attachment->path) ->as($attachment->path)
->withMime($mime); ->withMime($mime);