comment = $comment; } public function markdownBody(?int $limit = null) { $body = $this->comment->body; if ($limit !== null) { $body = Str::limit($body, $limit); } return Str::of($body)->markdown([ 'html_input' => 'strip', ]); } public function relativeCreatedAt() { return $this->comment->created_at->diffForHumans(); } }