public function attachments(): array
{
$attachments = [];
$attachment_names = $this->template->attachment_names;
foreach ($this->template->attachments as $attachment) {
$value = $attachment_names[$attachment] ?? null;
$attachments[] = $this->attachFromStorageDisk('local', $attachment, $value);
}
return $attachments;
}
public function attachments(): array
{
$attachments = [];
$attachment_names = $this->template->attachment_names;
foreach ($this->template->attachments as $attachment) {
$value = $attachment_names[$attachment] ?? null;
$attachments[] = $this->attachFromStorageDisk('local', $attachment, $value);
}
return $attachments;
}