Gender::class, 'birth_date' => 'date', ]; } protected function birthDateFormatted(): Attribute { return Attribute::make( get: fn () => Carbon::parse($this->birth_date)->format('l, d F Y'), ); } protected function birthDateInput(): Attribute { return Attribute::make( get: fn () => $this->birth_date?->format('Y-m-d'), ); } protected function genderLabel(): Attribute { return Attribute::make( get: fn () => $this->gender?->label(), ); } public function user(): BelongsTo { return $this->belongsTo(User::class); } }