/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $farmerPoint = FarmerPoint::find($id); $farmerCrop = FarmerCrop::with('users')->where('farmer_point_id', 'id'); return view('FarmerPoint.FarmerPointDetail', ['farmerPoint' => $farmerPoint, 'farmerCrop' => $farmerCrop]); }