dimanche 26 juin 2016

how to retrieve records of parent table in many to many relation in laravel

I have User model and Job model. There is many to many relation between them. Pivot table name is job_user. Now I have three foreign keys columns in pivot table; two from user table and one from job table. Now my question is how I query so I will able to show all records of table user and table job based on foreign keys columns of pivot table in Laravel 5.2



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28V5dS5
via IFTTT

Aucun commentaire:

Enregistrer un commentaire