This commit is contained in:
Martin Folkerts 2024-02-01 17:10:31 +01:00
parent c01af00645
commit 8d71103518

View file

@ -56,10 +56,10 @@ public function content(): Content
public function attachments(): array public function attachments(): array
{ {
return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) { return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) {
$projectPath = $attachment->mailing->project->path; // $projectPath = $attachment->mailing->project->path;
return Attachment::fromStorage( return Attachment::fromStorage(
path: $projectPath.$attachment->path path: "chemba/".$attachment->path
) )
->as($attachment->name) ->as($attachment->name)
->withMime('application/pdf'); ->withMime('application/pdf');