I have four tables 1. Users with user model 2. Categories with category model 3. Items with item model 4. Products with product model
Categories can have many items Users can post many products
Items have item_category as foreign key
Products has p_item, p_category and p_user as foreign keys
How can I join all these tables using eloquent so that I can access any field I want.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire