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.



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

Aucun commentaire:

Enregistrer un commentaire