*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'path' => $this->path, 'locale' => $this->locale, 'referrer' => $this->referrer, // Our own page links here: more urgent than someone else's stale link. 'internal_referrer' => $this->resource->isInternalReferrer(), 'status' => $this->status->value, 'hits' => (int) $this->hits, 'first_seen_at' => $this->first_seen_at?->toIso8601String(), 'last_seen_at' => $this->last_seen_at?->toIso8601String(), 'resolved_at' => $this->resolved_at?->toIso8601String(), ]; } }