/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show(RentalUnit $rentalUnit, Comment $comment) { return Response::json($rentalUnit->comments()->where("id", $comment->getAttribute("id"))->get()); }