From 11f2053e773374113bbd03d5e05629a8906a0257 Mon Sep 17 00:00:00 2001 From: Martin Folkerts Date: Tue, 9 Jul 2024 16:36:46 +0200 Subject: [PATCH] changed attachment to fromPath --- laravel_app/app/Mail/ReportMailer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel_app/app/Mail/ReportMailer.php b/laravel_app/app/Mail/ReportMailer.php index 7861e2f..129fa48 100644 --- a/laravel_app/app/Mail/ReportMailer.php +++ b/laravel_app/app/Mail/ReportMailer.php @@ -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);