/** * Display a list of posts in a category ordered by votes * * @param Request $request * @return Response */ public function category(Request $request, $category) { return view('posts.index', ['posts' => $this->posts->byCategory($category), 'category' => $category]); }