Exemplo n.º 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id)
 {
     $gasto = Gasto::findOrFail($id);
     $gasto->fill($request->all());
     $gasto->save();
     return \Redirect::route('gastos.index');
 }