Fix Member name
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user