> */ public function listForUser(string $publicId): array { if ($this->base() === '' || $this->token() === '') { return []; } $res = Http::withToken($this->token())->acceptJson()->timeout(10) ->get($this->base().'/domains', ['user' => $publicId]); if ($res->failed()) { return []; } return (array) ($res->json('data') ?? $res->json() ?? []); } }