예제 #1
0
 /**
  * Show the form for editing the specified resource.
  * GET /tipohabitacion/{id}/edit
  *
  * @param  int  $id
  * @return Response
  */
 public function postEdit()
 {
     $tipogasto = TipodeGasto::find(Input::get('tipogasto_id'));
     $tipogasto->update(Input::all());
     $tipogasto->save();
     return Redirect::to("/tiposdegasto");
 }
예제 #2
0
 public function getRegistrarGasto()
 {
     $tipodegastos = TipodeGasto::lists('nombre', 'id');
     return View::make('caja.registrargasto', compact('tipodegastos'));
 }