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