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
Post a Comment