dimanche 29 octobre 2017

Laravel Proper Relationship

So i have a 3 tables. Users-Inventory-Item. User hasmany Items, so far i have no problem. I can reach Items of User with this relationship.

Item table contains : user_id, item_id

So my problem is to reach item info of the Inventory of the User by item_id(which will find id of Item table and bring the info). I couldn't manage it, I need you advices about which relations would be the proper for my aim.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire