member; $member = Member::findOrFail($memberId); return new self( name: $member->fullname, secondLine: "geb. am {$member->birthday->format('d.m.Y')}, wohnhaft in {$member->location}", currentDate: now()->format('d.m.Y'), sender: [ $member->fullname, $member->address, $member->zip.' '.$member->location, 'Mglnr.: '.$member->nami_id, ] ); } public function getFilename(): string { return 'efz-fuer-'.Str::slug($this->name); } public function getView(): string { return 'tex.efz'; } public function getTemplate(): ?string { return 'efz'; } public function setFilename(string $filename): static { $this->filename = $filename; return $this; } public function getScript(): EnvType { return EnvType::PDFLATEX; } }