O
O
ObehanProger2020-01-25 17:52:28
Laravel
ObehanProger, 2020-01-25 17:52:28

How to make a withdrawal of various products?

On the main page of the site, all products are displayed, which are sorted by the date of the last addition. How to make sure that more than five products from one category are not displayed in a row, but alternate by category? The category table Category is linked to the product table by category_id to the Product model

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question