Ejemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $place = Place::find($id->id);
     $cuisineIDs = $place->cuisine->pluck('id', 'cuisinename');
     $cuisines = Cuisine::all();
     return view("location._edit", compact('place', 'cuisines', 'cuisineIDs'));
 }