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