Update Member Enrollment
This commit is contained in:
@@ -61,6 +61,16 @@ class Member extends Model
|
||||
return $this->hasMany(CorporateEmployee::class, 'member_id');
|
||||
}
|
||||
|
||||
public function memberPlans()
|
||||
{
|
||||
return $this->hasMany(MemberPlan::class, 'member_id');
|
||||
}
|
||||
|
||||
public function plans()
|
||||
{
|
||||
return $this->hasManyThrough(MemberPlan::class, Plan::class, 'member_id', 'plan_id', 'id', 'plan_id');
|
||||
}
|
||||
|
||||
public function policies()
|
||||
{
|
||||
return $this->hasMany(MemberPolicy::class, 'member_id', 'member_id');
|
||||
|
||||
Reference in New Issue
Block a user