Update Linking With ASO

This commit is contained in:
R
2023-02-17 14:29:50 +07:00
parent 912edcdae7
commit 5c71b556a0
10 changed files with 194 additions and 6 deletions

View File

@@ -141,7 +141,8 @@ class Member extends Model
public function currentPlan()
{
return $this->hasOneThrough(Plan::class, MemberPlan::class, 'member_id', 'id', 'id', 'plan_id')->latest();
return $this->hasOneThrough(Plan::class, MemberPlan::class, 'member_id', 'id', 'id', 'plan_id')
->latest(); // TODO Fix This
}
public function policies()