public function withAttachment(Attachment $attachment) { $this->attachments->push($attachment); return $this; }