1 month ago

Getting the category and posts inside it

Posted 1 month ago by webfuelcode

Working on a directory where I want to display category and few numbers of posts inside that category.

Category and link facades are added to the controller. It is working fine to display list of categories and a list of links on the homepage.

My main concern is to use the relationship to get the category and a few lists from that category.

Actually it is a design concern, where I want the home page to show 3-4 categories and few links. It would a table or bootstrap card where the category name will appear on top and the list.

I am not sure to use the relation. Nothing much complicated I have just used a category and links relationship.

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