Commit 73065d12 authored by Taylor Otwell's avatar Taylor Otwell

Refactor the database manager.

parent a1956f01
...@@ -22,7 +22,10 @@ class Manager { ...@@ -22,7 +22,10 @@ class Manager {
*/ */
public static function connection($connection = null) public static function connection($connection = null)
{ {
if (is_null($connection)) $connection = Config::get('db.default'); if (is_null($connection))
{
$connection = Config::get('db.default');
}
if ( ! array_key_exists($connection, static::$connections)) if ( ! array_key_exists($connection, static::$connections))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment