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
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire