public function fieldReservations($id) { $field = Field::with('company', 'reservations')->find($id); return response()->json($field); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $field = Field::with('photos', 'company', 'reviews.user')->where('id', '=', $id)->get(); return response()->json($field); }