Product Categories

There will be an n:n relationship between categories and products, meaning we can have as many products in as many categories as we want.

The pivot model for us to connect products with categories will have the following attributes:

  • Product ID
  • Category ID

The two IDs for both the product and the category is all we need to connect the two.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.174.133