Example #1
0
 /**
  * @param string|null $connection
  * @return \Notadd\Foundation\Database\Connection
  */
 public static function resolveConnection($connection = null)
 {
     return static::$resolver->connection($connection);
 }
 /**
  * @param  string $table
  * @return \Notadd\Foundation\Database\Query\Builder
  */
 protected function table($table)
 {
     return $this->db->connection($this->connection)->table($table);
 }
Example #3
0
 /**
  * @param string $connection
  * @return \Notadd\Foundation\Database\Connection
  */
 public function resolveConnection($connection)
 {
     return $this->resolver->connection($connection);
 }
 /**
  * @return \Notadd\Foundation\Database\Connection
  */
 public function getConnection()
 {
     return $this->resolver->connection($this->connection);
 }