php - How to work with more than one pivot tables in Laravel? -


i have 4 tables.

orders - pk(order_od)

order_collections - pk(order_collection_id), fk(order_id)

order_collection_products - pk(order_collection_product_id), fk(order_collection_id)

product - pk(product_id)

laravel documentation explains how data using 1 pivot table. how can data product table related specifyc order? how can use 2 pivot tables?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -