/**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $farmerPointList = FarmerPoint::Lists('name', 'id');
     return view('Farmer.FarmerRegistration', ['farmerPointList' => $farmerPointList]);
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     $farmerPoint = FarmerPoint::findOrFail($id);
     $farmerPoint->update($input);
     return redirect("farmerPoint/{$farmerPoint->id}");
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $farmerPointList = FarmerPoint::lists('name', 'id')->all();
     return view('agent.AgentRegistration', ['farmerPointList' => $farmerPointList]);
 }