$this->id, 'torrent_id' => $this->torrentid, 'user_id' => $this->userid, 'user' => new UserResource($this->whenLoaded('user')), ]; } }