Skip to content

Commit 32e23b0

Browse files
author
lapaliv
committed
tests: improvements
1 parent 602ab6e commit 32e23b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/App/Models/Model.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
use Illuminate\Database\Capsule\Manager;
77
use Illuminate\Database\Eloquent\Model as Eloquent;
88
use Illuminate\Database\Schema\Builder;
9+
use Illuminate\Support\Facades\DB;
910
use Lapaliv\BulkUpsert\Bulkable;
11+
use Throwable;
1012

1113
/**
1214
* @internal
@@ -32,8 +34,6 @@ public static function dropTable(): void
3234

3335
protected static function getSchema(): Builder
3436
{
35-
return Manager::schema(
36-
Container::getInstance()->make(static::class)->getConnectionName()
37-
);
37+
return DB::getSchemaBuilder();
3838
}
3939
}

0 commit comments

Comments
 (0)