Question:in laravel 9 I implement many to many relationship.
I have three table,
each shop can have
numberof every single product. and each product can exist in multiple shops.
the question is how can I insert/get the
numberof product inside the
what relationship syntax I have to use?
product_shop table :
Answer:You can use
pivot. For example,
If you have better answer, please add a comment about this, thank you!