public function postModificar(Request $req)
 {
     $tipo = TipoArticulo::findOrNew($req->get('id', 0));
     $tipo->fill($req->all());
     if ($tipo->save()) {
         return redirect('tipo-articulos')->with('mensaje', 'Se actualizó el tipo de articulo correctamente');
     }
     return Redirect::back()->withInput()->withErrors($tipo->getErrors());
 }