*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'name' => $this->name, 'last_used_at' => $this->last_used_at?->toIso8601String(), 'expires_at' => $this->expires_at?->toIso8601String(), 'created_at' => $this->created_at?->toIso8601String(), ]; } }