invitation->inviterName(); $name = $this->invitation->inviteableName(); return new Envelope( subject: $this->invitation->isForFolder() ? __(':inviter shared the folder ":name" with you', ['inviter' => $inviter, 'name' => $name]) : __(':inviter invited you to the ":name" workspace', ['inviter' => $inviter, 'name' => $name]), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'mail.invitation', with: [ 'inviterName' => $this->invitation->inviterName(), 'inviteableName' => $this->invitation->inviteableName(), 'roleLabel' => $this->invitation->roleLabel(), 'isFolder' => $this->invitation->isForFolder(), 'url' => route('invitations.accept', $this->invitation->token), ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }