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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -