/**
  * Set the connection to build the tables on.
  * 
  * @param  \Illuminate\Database\Connection  $connection
  * @return \Microweber\OAuth2\Laravel\TableBuilder
  */
 public function on(Connection $connection)
 {
     $this->schema->setConnection($connection);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Set the database connection instance.
  *
  * @param \Illuminate\Database\Connection $connection
  * @return $this 
  * @static 
  */
 public static function setConnection($connection)
 {
     return \Illuminate\Database\Schema\Builder::setConnection($connection);
 }
Exemplo n.º 3
0
 /**
  * Set the database connection instance.
  *
  * @param  \Illuminate\Database\Connection $connection
  *
  * @return $this
  */
 public function setConnection(Connection $connection)
 {
     return static::$schema->setConnection($connection);
 }