Fix Member name

This commit is contained in:
Muhammad Fajar
2024-01-06 13:52:52 +07:00
parent eb662f7c34
commit aacd93fe6a

View File

@@ -242,19 +242,6 @@ class Member extends Model
);
}
protected function name(): Attribute
{
if ($this->relationLoaded('person')) {
return Attribute::make(
get: fn () => $this->person->name ?? ($this->name ?? null)
);
} else {
return Attribute::make(
get: fn () => $this->name ?? null
);
}
}
protected function maritalStatus(): Attribute
{
if ($this->relationLoaded('person')) {