Esempio n. 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $potrero = Potreros::find($id);
     $responsables = \DB::table('users')->where('rol', 0)->lists('name', 'id');
     return view('potreros.edit', ['potrero' => $potrero, 'responsables' => $responsables]);
 }