コード例 #1
0
ファイル: CommentController.php プロジェクト: VJan-fin/Roomie
 /**
  * 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());
 }