public function show($slug)
{
$post = Post::where('slug',$slug)->with(['user','comment'])->first();
return view('discuss.posts.show',compact('post'));
}
When the comments about the specfied post is getting more than 10 should be paginated.
Thanks
Thanks @bobbybouwmann for the reply, but it's not working as expected, I specified 5 comments per page of 9 comments, but all comments are shown per each page, it paginates 2 pages with all 9 comments per page.