/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(Request $request, $id)
 {
     $genre = Genre::find($id);
     $genre->fill($request->all());
     $genre->save();
     return response()->json(["mensaje" => "listo"]);
 }
 public function find(Route $route)
 {
     $this->genre = Genre::find($route->getParameter('genero'));
 }
Beispiel #3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $genre = Genre::find($id);
     return view('genero.edit', ['genre' => $genre]);
     //osman colocar path fisico del view
 }