public function update(Request $request)
 {
     $data = Tool::removeSpace($request->all());
     if ($data['id']) {
     } else {
         $ins = new Institution();
         $ins->name = $data['nombre'];
         $ins->user_id = 1;
         if (isset($data['Tipo'][0])) {
             $r = $this->returnType($data['Tipo'][0]);
             $ins->{$r} = true;
         }
         if (isset($data['Tipo'][1])) {
             $r = $this->returnType($data['Tipo'][1]);
             $ins->{$r} = true;
         }
         if (isset($data['Tipo'][2])) {
             $r = $this->returnType($data['Tipo'][2]);
             $ins->{$r} = true;
         }
         $ins->country_id = $data['País'];
         $ins->state_id = $data['Estado'];
         $ins->city_id = $data['Ciudad'];
         $ins->save();
         $country = [];
         $country += ['' => '-- Selecciona Pais --'];
         $country += Country::lists('name', 'id')->toArray();
         $insti = $this->pagination();
         return view('institutions.index', compact('insti', 'country'));
     }
 }