Commit 64fb09a8 authored by Taylor Otwell's avatar Taylor Otwell

Refactor the database manager.

parent e78a5b0a
......@@ -22,10 +22,7 @@ class Manager {
*/
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))
{
......
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