Skip to content

Commit

Permalink
Allow the outside world to access the name of the default connection
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopaisfernandes committed Jun 22, 2018
1 parent 2c02bf7 commit 089c202
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Migrations/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,16 @@ public function setConnection($name)
$this->connection = $name;
}

/**
* Get the default connection name.
*
* @return string
*/
public function getConnection()
{
return $this->connection;
}

/**
* Resolve the database connection instance.
*
Expand Down

0 comments on commit 089c202

Please sign in to comment.