public function run()
 {
     Tipohabitacion::create(['nombre' => 'Simple', 'descripcion' => 'Simple']);
     Tipohabitacion::create(['nombre' => 'Doble', 'descripcion' => 'Doble']);
     Tipohabitacion::create(['nombre' => 'Triple', 'descripcion' => 'Triple']);
     Tipohabitacion::create(['nombre' => 'Matrimonial', 'descripcion' => 'Matrimonial']);
 }
Example #2
0
 /**
  * Store a newly created resource in storage.
  * POST /tipohabitacion
  *
  * @return Response
  */
 public function postCreate()
 {
     $tipohabitacion = Tipohabitacion::create(Input::all());
     return Redirect::to('/tiposhabitacion');
 }