We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 602ab6e commit 32e23b0Copy full SHA for 32e23b0
tests/App/Models/Model.php
@@ -6,7 +6,9 @@
6
use Illuminate\Database\Capsule\Manager;
7
use Illuminate\Database\Eloquent\Model as Eloquent;
8
use Illuminate\Database\Schema\Builder;
9
+use Illuminate\Support\Facades\DB;
10
use Lapaliv\BulkUpsert\Bulkable;
11
+use Throwable;
12
13
/**
14
* @internal
@@ -32,8 +34,6 @@ public static function dropTable(): void
32
34
33
35
protected static function getSchema(): Builder
36
{
- return Manager::schema(
- Container::getInstance()->make(static::class)->getConnectionName()
37
- );
+ return DB::getSchemaBuilder();
38
}
39
0 commit comments