/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show(Category $category, Post $post, CommentRepository $comment) { return view('blog.post', ['post' => $post, 'categories' => $category->all(), 'comments' => $comment->getPostComments($post)]); }