fix dashboard table
This commit is contained in:
@@ -182,4 +182,14 @@ class Member extends Model
|
||||
// });
|
||||
});
|
||||
}
|
||||
|
||||
// public function corporateEmployee()
|
||||
// {
|
||||
// return $this->hasOne(CorporateEmployee::class, 'member_id');
|
||||
// }
|
||||
|
||||
public function division()
|
||||
{
|
||||
return $this->hasOneThrough(CorporateDivision::class, CorporateEmployee::class, 'member_id', 'id', 'id', 'division_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user