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
{
return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) {
$projectPath = $attachment->mailing->project->path;
// $projectPath = $attachment->mailing->project->path;
return Attachment::fromStorage(
path: $projectPath.$attachment->path
path: "chemba/".$attachment->path
)
->as($attachment->name)
->withMime('application/pdf');