From aacd93fe6a54f234db92a8d5d2f3a84b02f6c326 Mon Sep 17 00:00:00 2001 From: Muhammad Fajar Date: Sat, 6 Jan 2024 13:52:52 +0700 Subject: [PATCH] Fix Member name --- app/Models/Member.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/Models/Member.php b/app/Models/Member.php index 1aed47fe..3163f842 100644 --- a/app/Models/Member.php +++ b/app/Models/Member.php @@ -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')) {