Exemplo n.º 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  Request  $request
  * @param  int  $id
  * @return Response
  */
 public function update(Request $request)
 {
     $difuntoU = new Difunto($request->all());
     $difunto = Difunto::find($request->input('id'));
     $difunto->update($difuntoU->attributesToArray());
 }