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