/**
  * 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;
 }
 /**
  * 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);
 }
Esempio 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);
 }