Пример #1
0
 private function consultarFondosExternos()
 {
     $fondos_importados = Fondo::lists('fondo')->all();
     if (count($fondos_importados) > 0) {
         $fondos_externos = \DB::connection($this->db_origen)->table('tbl_fondos')->whereNotIn('fondo', $fondos_importados)->get();
     } else {
         $fondos_externos = \DB::connection($this->db_origen)->table('tbl_fondos')->get();
     }
     return $fondos_externos;
 }