public connection ( string | array $name = null ) : Collective\Remote\ConnectionInterface | ||
$name | string | array | |
Результат | Collective\Remote\ConnectionInterface |
public function connection($name = null)
{
if (is_array($name)) {
return $this->multiple($name);
}
return $this->resolve($name ?: $this->getDefaultConnection());
}
/** * Get a remote connection instance. * * @param string|array $name * @return \Collective\Remote\ConnectionInterface * @static */ public static function connection($name = null) { return \Collective\Remote\RemoteManager::connection($name); }