public static function photos($objectType, $objectSelect, $MLSNumber) { $config = new \PHRETS\Configuration(); $config->setLoginUrl(env('RETS_LOGIN_URL'))->setUsername(env('RETS_USERNAME'))->setPassword(env('RETS_PASSWORD'))->setRetsVersion(env('RETS_VERSION')); $rets = new \PHRETS\Session($config); $connect = $rets->Login(); try { $photos = $rets->GetObject($objectType, $objectSelect, $MLSNumber); } catch (Exception $e) { Bugsnag::notifyException($e); } catch (PHRETS\Exceptions\CapabilityUnavailable $e) { Bugsnag::notifyException($e); } $rets->Disconnect(); return $photos; }