protected function getConfig($name) { $config = $this->app['config']['remote.connections.' . $name]; if (!is_null($config)) { return $config; } throw new \InvalidArgumentException("Remote connection [{$name}] not defined."); }