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);