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']); }
/** * Store a newly created resource in storage. * POST /tipohabitacion * * @return Response */ public function postCreate() { $tipohabitacion = Tipohabitacion::create(Input::all()); return Redirect::to('/tiposhabitacion'); }