Level 1
Try get posts by category relation. For example:
$subposts = Posts::where('category_id', $category->id)->paginate(10);
Trying to show the latest posts with pagination.
$subposts = Category::with(['posts', 'children.posts'])->where('id', $category->id)->first();
Tried get(), latest() but sometimes it says property does not found and sometimes collection error.
I have a page designed for subcategory and post list on two columns.
Please or to participate in this conversation.