public function getConnection() { // Get cached resolved connection if ($this->connection) { return $this->connection; } $connection = Arr::get($this->getConnections(), 0); $this->connection = $connection; return $this->connection; }