I have a related question API REST, if anyone can help, thank you.
I have 2 entities, Product and Store, which have a many-to-many relationship between them. A Product may be available in 1 or more Stores and, in turn, a Store may have 1 or more Products. Until then, beauty.
But I need a unique route to add a Product to a Store and also a unique route to remove a Product from a Store. The relationship is simple, there is no extra column in the pivot table.
What approach would you use?
Once again, thank you.