oke
This commit is contained in:
parent
c01af00645
commit
8d71103518
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue