Categories, SubCategories and products with pagenation

Posted 10 months ago by MrFiliper

Hi, i have these models:

Category

  • id
  • sub_id

Product

  • id
  • name

ane table

product_categories

  • id
  • category_id
  • product_id

Main category

  • SubCategory 1
  • SubCategory 2

I want to display all items in "Main Category", how can i do that with pagenation? In laravel blade, i can use loop, but i need pagenation.

Please sign in or create an account to participate in this conversation.