/** * Display posts in category. * * @param ArticleCategory $category * @return \Illuminate\View\View */ public function category(ArticleCategory $category) { $posts = $this->posts->articlesForCategory($category->id, 3); return view('posts.category', compact('category', 'posts')); }