*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'ip' => $this->ip, 'user' => new UserProfileResource($this->user), 'url' => $this->url, 'method' => $this->method, 'browser' => $this->browser, 'platform' => $this->platform, 'request_at' => (string)$this->request_at, 'display_id' => $this->display_id, ]; } }