$this->id, 'user' => new UserInfoBaseResource($this->user), 'parent' => $this->when($this->parent_id, function () { return new UserInfoBaseResource($this->parent->user); }, function () { return null; }), 'is_me' => ! $this->user()->isNot($user), 'content' => $this->content, ]; } }