From 1dcaa543bc70f69fec179344391dd8af77fa72fa Mon Sep 17 00:00:00 2001 From: Martin Folkerts Date: Tue, 9 Jul 2024 16:18:51 +0200 Subject: [PATCH] update signature of attachment path --- laravel_app/app/Mail/ReportMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel_app/app/Mail/ReportMailer.php b/laravel_app/app/Mail/ReportMailer.php index bc3b240..54bad84 100644 --- a/laravel_app/app/Mail/ReportMailer.php +++ b/laravel_app/app/Mail/ReportMailer.php @@ -65,7 +65,7 @@ public function content(): Content public function attachments(): array { return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) { - $attachment_path = $attachment->mailing->project->download_path."/".$attachment->path; + $attachment_path = Storage::path($attachment->mailing->project->download_path."/".$attachment->path); if (!File::exists($attachment_path)) { logger('Could not find attachment: ' . $attachment_path);