From c01af00645e6eafc10eec7420a4ec8d639caabb8 Mon Sep 17 00:00:00 2001 From: Martin Folkerts Date: Thu, 1 Feb 2024 17:08:32 +0100 Subject: [PATCH] oke --- 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 9455a4c..2cb3288 100644 --- a/laravel_app/app/Mail/ReportMailer.php +++ b/laravel_app/app/Mail/ReportMailer.php @@ -56,7 +56,7 @@ public function content(): Content public function attachments(): array { return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) { - $projectPath = $attachment->mailing()->project()->first()->path; + $projectPath = $attachment->mailing->project->path; return Attachment::fromStorage( path: $projectPath.$attachment->path