Allow the registration of custom database drivers.

This commit is contained in:
Taylor Otwell
2012-04-30 22:40:18 -05:00
parent cf29450b99
commit 7e33ec5f34
3 changed files with 43 additions and 3 deletions

View File

@@ -148,6 +148,11 @@ class Schema {
{
$driver = $connection->driver();
if (isset(\Laravel\Database::$registrar[$driver]))
{
return \Laravel\Database::$registrar[$driver]['schema']();
}
switch ($driver)
{
case 'mysql':