mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-28 03:44:19 +08:00
Merge pull request #11604 from recca0120/patch-1
getSchemaBuilder will return SchemaBuilder not Schema Facade
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Filament\Support\Commands\Concerns;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Str;
|
||||
use ReflectionClass;
|
||||
@@ -20,7 +21,7 @@ trait CanReadModelSchemas
|
||||
return $model;
|
||||
}
|
||||
|
||||
protected function getModelSchema(string $model): Schema
|
||||
protected function getModelSchema(string $model): Builder
|
||||
{
|
||||
return app($model)
|
||||
->getConnection()
|
||||
|
||||
Reference in New Issue
Block a user