I have a teams table which has following structure :
id | manager_id | leader_id | member_id |
All of these three ids i.e manager_id leader_id and member_id are referring to id of employees table how do I set relationship because usually I do :
public function functionName()
{
return $this->hasOne('\App\Models\Employee', 'id', 'manager_id');
}
But not able to figure out in this case
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire