/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $item = Comment::find($id); if ($item != null) { $answer = AnswerComment::where('comment_id', '=', $id)->get(); return view('comment.show', compact('item', 'answer')); } return Redirect::to(URL::to('datatables', ['comentarios', 'see']))->with('error', 'id-nn'); }