jeudi 1 juin 2017

how to use localkey for both table in hasmanythrough relationship..in laravel 5

return $this->hasManyThrough('App\TblEmployeeMaster', 'App\TblMasUser','usr_UserId','emp_EmployeeCode');

That's my code.. I want to add 2 localkey one for TblEmployeeMaster and another one for App\TblMasUser



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire