Blueprint
class Blueprint
Traits
Constants
| private FOREIGN_KEY_TARGET_COMMANDS |
|
Properties
| static protected array | $macros | The registered string macros. |
from Macroable |
| protected Connection | $connection | The database connection instance. |
|
| protected Grammar | $grammar | The schema grammar instance. |
|
| protected string | $table | The table the blueprint describes. |
|
| protected ColumnDefinition> | $columns | The columns that should be added to the table. |
|
| protected Fluent> | $commands | The commands that should be run for the table. |
|
| string|null | $engine | The storage engine that should be used for the table. |
|
| string|null | $charset | The default character set that should be used for the table. |
|
| string|null | $collation | The collation that should be used for the table. |
|
| bool | $temporary | Whether to make the table temporary. |
|
| null|list<string> | $rangePartitionColumns | The columns that should range-partition the table (PostgreSQL only). |
|
| string|null | $after | The column to add new columns after. |
|
| protected BlueprintState|null | $state | The blueprint state instance. |
Methods
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Create a new schema blueprint.
Execute the blueprint against the database.
Get the raw SQL statements for the blueprint.
Ensure the commands on the blueprint are valid for the connection type.
Add the commands that are implied by the blueprint's state.
Add the index commands fluently specified on columns.
Add the fluent commands specified on any columns.
Add the alter commands if whenever needed.
Determine if the blueprint has a create command.
Specify the storage engine that should be used for the table.
Specify that the InnoDB storage engine should be used for the table (MySQL only).
Specify the character set that should be used for the table.
Specify the collation that should be used for the table.
Indicate that the table needs to be temporary.
Indicate that the table should be partitioned by ranges of the given columns (PostgreSQL only).
Indicate that the table should be dropped if it exists.
Indicate that the given columns should be dropped.
Indicate that the given columns should be renamed.
Indicate that the given primary key should be dropped.
Indicate that the given unique key should be dropped.
Indicate that the given fulltext index should be dropped.
Indicate that the given spatial index should be dropped.
Indicate that the given vector index should be dropped.
Indicate that the given foreign key should be dropped.
Indicate that the given column and foreign key should be dropped.
Indicate that the given foreign key should be dropped.
Indicate that the given foreign key should be dropped.
Indicate that the given indexes should be renamed.
Indicate that the timestamp columns should be dropped.
Indicate that the timestamp columns should be dropped.
Indicate that the soft delete column should be dropped.
Indicate that the soft delete column should be dropped.
Indicate that the remember token column should be dropped.
Indicate that the polymorphic columns should be dropped.
Specify the primary key(s) for the table.
Specify a unique index for the table.
Specify an index for the table.
Specify a fulltext index for the table.
Specify a spatial index for the table.
Specify a vector index for the table.
Specify a raw index for the table.
Specify a foreign key for the table.
Create a new auto-incrementing big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
Create a new auto-incrementing integer column on the table (MySQL/MariaDB: 4-byte, 0 to 4,294,967,295).
Create a new auto-incrementing integer column on the table (MySQL/MariaDB: 4-byte, 0 to 4,294,967,295).
Create a new auto-incrementing tiny integer column on the table (MySQL/MariaDB: 1-byte, 0 to 255).
Create a new auto-incrementing small integer column on the table (MySQL/MariaDB: 2-byte, 0 to 65,535).
Create a new auto-incrementing medium integer column on the table (MySQL/MariaDB: 3-byte, 0 to 16,777,215).
Create a new auto-incrementing big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
Create a new char column on the table.
Create a new string column on the table.
Create a new tiny text column on the table (up to 255 bytes on MySQL/MariaDB).
Create a new text column on the table (up to 65,535 bytes on MySQL/MariaDB).
Create a new medium text column on the table (up to 16,777,215 bytes on MySQL/MariaDB).
Create a new long text column on the table (up to 4,294,967,295 bytes on MySQL/MariaDB).
Create a new integer column on the table.
Create a new tiny integer column on the table.
Create a new small integer column on the table.
Create a new medium integer column on the table.
Create a new big integer column on the table.
Create a new unsigned integer column on the table (MySQL/MariaDB: 4-byte, 0 to 4,294,967,295).
Create a new unsigned tiny integer column on the table (MySQL/MariaDB: 1-byte, 0 to 255).
Create a new unsigned small integer column on the table (MySQL/MariaDB: 2-byte, 0 to 65,535).
Create a new unsigned medium integer column on the table (MySQL/MariaDB: 3-byte, 0 to 16,777,215).
Create a new unsigned big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
Create a new unsigned big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
Create a foreign ID column for the given model.
Create a foreign UUID column for the given model.
Create a foreign ULID column for the given model.
Create a new float column on the table.
Create a new double column on the table.
Create a new decimal column on the table.
Create a new boolean column on the table.
Create a new enum column on the table.
Create a new set column on the table.
Create a new json column on the table.
Create a new jsonb column on the table.
Create a new date column on the table.
Create a new date-time column on the table.
Create a new date-time column (with time zone) on the table.
Create a new time column on the table.
Create a new time column (with time zone) on the table.
Create a new timestamp column on the table.
Create a new timestamp (with time zone) column on the table.
Add nullable creation and update timestamps to the table.
Add nullable creation and update timestamps to the table.
Add nullable creation and update timestampTz columns to the table.
Add nullable creation and update timestampTz columns to the table.
Add creation and update datetime columns to the table.
Add a "deleted at" timestamp for the table.
Add a "deleted at" timestampTz for the table.
Add a "deleted at" datetime column to the table.
Create a new year column on the table.
Create a new binary column on the table.
Create a new medium binary column on the table (up to 16,777,215 bytes on MySQL/MariaDB).
Create a new long binary column on the table (up to 4,294,967,295 bytes on MySQL/MariaDB).
Create a new UUID column on the table.
Create a new UUID foreign ID column on the table.
Create a new ULID column on the table.
Create a new ULID foreign ID column on the table.
Create a new IP address column on the table.
Create a new MAC address column on the table.
Create a new geometry column on the table.
Create a new geography column on the table.
Create a new vector column on the table.
Create a new tsvector column on the table.
Add the proper columns for a polymorphic table.
Add nullable columns for a polymorphic table.
Add the proper columns for a polymorphic table using numeric IDs (incremental).
Add nullable columns for a polymorphic table using numeric IDs (incremental).
Add the proper columns for a polymorphic table using UUIDs.
Add nullable columns for a polymorphic table using UUIDs.
Add the proper columns for a polymorphic table using ULIDs.
Add nullable columns for a polymorphic table using ULIDs.
Add the remember_token column to the table.
Create a new custom column on the table.
Create a new index command on the blueprint.
Create a new drop index command on the blueprint.
Create a default index name for the table.
Add a new column to the blueprint.
Create a new column definition.
Remove a column from the schema blueprint.
Add a new command to the blueprint.
Create a new Fluent command.
Get the table the blueprint describes.
Get the schema grammar used by the blueprint.
Get the columns on the blueprint.
Get the commands on the blueprint.
Get the state of the blueprint.
Get the columns on the blueprint that should be added.
Get the default time precision.
Flush all static state.
Details
in
Macroable at line 30
static void
macro(string $name, callable|object $macro)
Register a custom macro.
Macros persist in a static property for the worker lifetime and apply to every subsequent call on the macroable class.
in
Macroable at line 44
static void
mixin(object $mixin, bool $replace = true)
Mix another object into the class.
Delegates to macro() for each method; registered macros persist in a static property for the worker lifetime.
in
Macroable at line 61
static bool
hasMacro(string $name)
Check if macro is registered.
in
Macroable at line 72
static void
flushMacros()
Flush the existing macros.
Clears worker-wide macros; concurrent coroutines may resolve different methods depending on timing.
in
Macroable at line 83
static mixed
__callStatic(string $method, array $parameters)
Dynamically handle calls to the class.
in
Macroable at line 108
mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.
at line 104
__construct(Connection $connection, string $table, Closure|null $callback = null)
Create a new schema blueprint.
at line 118
void
build()
Execute the blueprint against the database.
at line 126
array
toSql()
Get the raw SQL statements for the blueprint.
at line 163
protected void
ensureCommandsAreValid()
Ensure the commands on the blueprint are valid for the connection type.
at line 173
protected void
addImpliedCommands()
Add the commands that are implied by the blueprint's state.
at line 195
protected void
addFluentIndexes()
Add the index commands fluently specified on columns.
at line 342
void
addFluentCommands()
Add the fluent commands specified on any columns.
at line 354
void
addAlterCommands()
Add the alter commands if whenever needed.
at line 392
bool
creating()
Determine if the blueprint has a create command.
at line 401
Fluent
create()
Indicate that the table needs to be created.
at line 409
void
engine(string $engine)
Specify the storage engine that should be used for the table.
at line 417
void
innoDb()
Specify that the InnoDB storage engine should be used for the table (MySQL only).
at line 425
void
charset(string $charset)
Specify the character set that should be used for the table.
at line 433
void
collation(string $collation)
Specify the collation that should be used for the table.
at line 441
void
temporary()
Indicate that the table needs to be temporary.
at line 451
void
partitionByRange(array|string $columns)
Indicate that the table should be partitioned by ranges of the given columns (PostgreSQL only).
at line 459
Fluent
drop()
Indicate that the table should be dropped.
at line 467
Fluent
dropIfExists()
Indicate that the table should be dropped if it exists.
at line 475
Fluent
dropColumn(array|string $columns)
Indicate that the given columns should be dropped.
at line 485
Fluent
renameColumn(string $from, string $to)
Indicate that the given columns should be renamed.
at line 493
Fluent
dropPrimary(array|string|null $index = null)
Indicate that the given primary key should be dropped.
at line 501
Fluent
dropUnique(array|string $index)
Indicate that the given unique key should be dropped.
at line 509
Fluent
dropIndex(array|string $index)
Indicate that the given index should be dropped.
at line 517
Fluent
dropFullText(array|string $index)
Indicate that the given fulltext index should be dropped.
at line 525
Fluent
dropSpatialIndex(array|string $index)
Indicate that the given spatial index should be dropped.
at line 533
Fluent
dropVectorIndex(array|string $index)
Indicate that the given vector index should be dropped.
at line 541
Fluent
dropForeign(array|string $index, string|null $name = null)
Indicate that the given foreign key should be dropped.
at line 557
Fluent
dropConstrainedForeignId(string $column)
Indicate that the given column and foreign key should be dropped.
at line 567
Fluent
dropForeignIdFor(Model|string $model, string|null $column = null)
Indicate that the given foreign key should be dropped.
at line 579
Fluent
dropConstrainedForeignIdFor(Model|string $model, string|null $column = null)
Indicate that the given foreign key should be dropped.
at line 591
Fluent
renameIndex(string $from, string $to)
Indicate that the given indexes should be renamed.
at line 599
void
dropTimestamps()
Indicate that the timestamp columns should be dropped.
at line 607
void
dropTimestampsTz()
Indicate that the timestamp columns should be dropped.
at line 615
void
dropSoftDeletes(string $column = 'deleted_at')
Indicate that the soft delete column should be dropped.
at line 623
void
dropSoftDeletesTz(string $column = 'deleted_at')
Indicate that the soft delete column should be dropped.
at line 631
void
dropRememberToken()
Indicate that the remember token column should be dropped.
at line 639
void
dropMorphs(string $name, string|null $indexName = null)
Indicate that the polymorphic columns should be dropped.
at line 653
Fluent
rename(string $to)
Rename the table to a given name.
at line 661
IndexDefinition
primary(array|string $columns, string|null $name = null, string|null $algorithm = null)
Specify the primary key(s) for the table.
at line 669
IndexDefinition
unique(array|string $columns, string|null $name = null, string|null $algorithm = null)
Specify a unique index for the table.
at line 677
IndexDefinition
index(array|string $columns, string|null $name = null, string|null $algorithm = null)
Specify an index for the table.
at line 685
IndexDefinition
fullText(array|string $columns, string|null $name = null, string|null $algorithm = null)
Specify a fulltext index for the table.
at line 693
IndexDefinition
spatialIndex(array|string $columns, string|null $name = null, string|null $operatorClass = null)
Specify a spatial index for the table.
at line 701
IndexDefinition
vectorIndex(string $column, string|null $name = null)
Specify a vector index for the table.
at line 713
IndexDefinition
rawIndex(string $expression, string $name)
Specify a raw index for the table.
at line 721
ForeignKeyDefinition
foreign(array|string $columns, string|null $name = null)
Specify a foreign key for the table.
at line 739
ColumnDefinition
id(string $column = 'id')
Create a new auto-incrementing big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
at line 749
ColumnDefinition
increments(string $column)
Create a new auto-incrementing integer column on the table (MySQL/MariaDB: 4-byte, 0 to 4,294,967,295).
at line 759
ColumnDefinition
integerIncrements(string $column)
Create a new auto-incrementing integer column on the table (MySQL/MariaDB: 4-byte, 0 to 4,294,967,295).
at line 769
ColumnDefinition
tinyIncrements(string $column)
Create a new auto-incrementing tiny integer column on the table (MySQL/MariaDB: 1-byte, 0 to 255).
at line 779
ColumnDefinition
smallIncrements(string $column)
Create a new auto-incrementing small integer column on the table (MySQL/MariaDB: 2-byte, 0 to 65,535).
at line 789
ColumnDefinition
mediumIncrements(string $column)
Create a new auto-incrementing medium integer column on the table (MySQL/MariaDB: 3-byte, 0 to 16,777,215).
at line 799
ColumnDefinition
bigIncrements(string $column)
Create a new auto-incrementing big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
at line 809
ColumnDefinition
char(string $column, int|null $length = null)
Create a new char column on the table.
at line 821
ColumnDefinition
string(string $column, int|null $length = null)
Create a new string column on the table.
at line 833
ColumnDefinition
tinyText(string $column)
Create a new tiny text column on the table (up to 255 bytes on MySQL/MariaDB).
at line 843
ColumnDefinition
text(string $column)
Create a new text column on the table (up to 65,535 bytes on MySQL/MariaDB).
at line 853
ColumnDefinition
mediumText(string $column)
Create a new medium text column on the table (up to 16,777,215 bytes on MySQL/MariaDB).
at line 863
ColumnDefinition
longText(string $column)
Create a new long text column on the table (up to 4,294,967,295 bytes on MySQL/MariaDB).
at line 874
ColumnDefinition
integer(string $column, bool $autoIncrement = false, bool $unsigned = false)
Create a new integer column on the table.
MySQL/MariaDB (4-byte): -2,147,483,648 to 2,147,483,647 (signed) or 0 to 4,294,967,295 (unsigned).
at line 885
ColumnDefinition
tinyInteger(string $column, bool $autoIncrement = false, bool $unsigned = false)
Create a new tiny integer column on the table.
MySQL/MariaDB (1-byte): -128 to 127 (signed) or 0 to 255 (unsigned).
at line 896
ColumnDefinition
smallInteger(string $column, bool $autoIncrement = false, bool $unsigned = false)
Create a new small integer column on the table.
MySQL/MariaDB (2-byte): -32,768 to 32,767 (signed) or 0 to 65,535 (unsigned).
at line 907
ColumnDefinition
mediumInteger(string $column, bool $autoIncrement = false, bool $unsigned = false)
Create a new medium integer column on the table.
MySQL/MariaDB (3-byte): -8,388,608 to 8,388,607 (signed) or 0 to 16,777,215 (unsigned).
at line 918
ColumnDefinition
bigInteger(string $column, bool $autoIncrement = false, bool $unsigned = false)
Create a new big integer column on the table.
MySQL/MariaDB (8-byte): -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (signed) or 0 to 18,446,744,073,709,551,615 (unsigned).
at line 928
ColumnDefinition
unsignedInteger(string $column, bool $autoIncrement = false)
Create a new unsigned integer column on the table (MySQL/MariaDB: 4-byte, 0 to 4,294,967,295).
at line 938
ColumnDefinition
unsignedTinyInteger(string $column, bool $autoIncrement = false)
Create a new unsigned tiny integer column on the table (MySQL/MariaDB: 1-byte, 0 to 255).
at line 948
ColumnDefinition
unsignedSmallInteger(string $column, bool $autoIncrement = false)
Create a new unsigned small integer column on the table (MySQL/MariaDB: 2-byte, 0 to 65,535).
at line 958
ColumnDefinition
unsignedMediumInteger(string $column, bool $autoIncrement = false)
Create a new unsigned medium integer column on the table (MySQL/MariaDB: 3-byte, 0 to 16,777,215).
at line 968
ColumnDefinition
unsignedBigInteger(string $column, bool $autoIncrement = false)
Create a new unsigned big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
at line 976
ForeignIdColumnDefinition
foreignId(string $column)
Create a new unsigned big integer column on the table (MySQL/MariaDB: 8-byte, 0 to 18,446,744,073,709,551,615).
at line 989
ForeignIdColumnDefinition
foreignIdFor(Model|string $model, string|null $column = null)
Create a foreign ID column for the given model.
at line 1017
ForeignIdColumnDefinition
foreignUuidFor(Model|string $model, string|null $column = null)
Create a foreign UUID column for the given model.
at line 1031
ForeignIdColumnDefinition
foreignUlidFor(Model|string $model, string|null $column = null)
Create a foreign ULID column for the given model.
at line 1047
ColumnDefinition
float(string $column, int $precision = 53)
Create a new float column on the table.
at line 1057
ColumnDefinition
double(string $column)
Create a new double column on the table.
at line 1067
ColumnDefinition
decimal(string $column, int $total = 8, int $places = 2)
Create a new decimal column on the table.
at line 1077
ColumnDefinition
boolean(string $column)
Create a new boolean column on the table.
at line 1087
ColumnDefinition
enum(string $column, array $allowed)
Create a new enum column on the table.
at line 1099
ColumnDefinition
set(string $column, array $allowed)
Create a new set column on the table.
at line 1109
ColumnDefinition
json(string $column)
Create a new json column on the table.
at line 1119
ColumnDefinition
jsonb(string $column)
Create a new jsonb column on the table.
at line 1129
ColumnDefinition
date(string $column)
Create a new date column on the table.
at line 1139
ColumnDefinition
dateTime(string $column, int|null $precision = null)
Create a new date-time column on the table.
at line 1151
ColumnDefinition
dateTimeTz(string $column, int|null $precision = null)
Create a new date-time column (with time zone) on the table.
at line 1163
ColumnDefinition
time(string $column, int|null $precision = null)
Create a new time column on the table.
at line 1175
ColumnDefinition
timeTz(string $column, int|null $precision = null)
Create a new time column (with time zone) on the table.
at line 1187
ColumnDefinition
timestamp(string $column, int|null $precision = null)
Create a new timestamp column on the table.
at line 1199
ColumnDefinition
timestampTz(string $column, int|null $precision = null)
Create a new timestamp (with time zone) column on the table.
at line 1211
Collection
timestamps(int|null $precision = null)
Add nullable creation and update timestamps to the table.
at line 1226
Collection
nullableTimestamps(int|null $precision = null)
Add nullable creation and update timestamps to the table.
Alias for self::timestamps().
at line 1236
Collection
timestampsTz(int|null $precision = null)
Add nullable creation and update timestampTz columns to the table.
at line 1251
Collection
nullableTimestampsTz(int|null $precision = null)
Add nullable creation and update timestampTz columns to the table.
Alias for self::timestampsTz().
at line 1261
Collection
datetimes(int|null $precision = null)
Add creation and update datetime columns to the table.
at line 1274
ColumnDefinition
softDeletes(string $column = 'deleted_at', int|null $precision = null)
Add a "deleted at" timestamp for the table.
at line 1284
ColumnDefinition
softDeletesTz(string $column = 'deleted_at', int|null $precision = null)
Add a "deleted at" timestampTz for the table.
at line 1294
ColumnDefinition
softDeletesDatetime(string $column = 'deleted_at', int|null $precision = null)
Add a "deleted at" datetime column to the table.
at line 1304
ColumnDefinition
year(string $column)
Create a new year column on the table.
at line 1314
ColumnDefinition
binary(string $column, int|null $length = null, bool $fixed = false)
Create a new binary column on the table.
at line 1324
ColumnDefinition
mediumBinary(string $column)
Create a new medium binary column on the table (up to 16,777,215 bytes on MySQL/MariaDB).
at line 1334
ColumnDefinition
longBinary(string $column)
Create a new long binary column on the table (up to 4,294,967,295 bytes on MySQL/MariaDB).
at line 1344
ColumnDefinition
uuid(string $column = 'uuid')
Create a new UUID column on the table.
at line 1352
ForeignIdColumnDefinition
foreignUuid(string $column)
Create a new UUID foreign ID column on the table.
at line 1365
ColumnDefinition
ulid(string $column = 'ulid', int|null $length = 26)
Create a new ULID column on the table.
at line 1373
ForeignIdColumnDefinition
foreignUlid(string $column, int|null $length = 26)
Create a new ULID foreign ID column on the table.
at line 1387
ColumnDefinition
ipAddress(string $column = 'ip_address')
Create a new IP address column on the table.
at line 1397
ColumnDefinition
macAddress(string $column = 'mac_address')
Create a new MAC address column on the table.
at line 1407
ColumnDefinition
geometry(string $column, string|null $subtype = null, int $srid = 0)
Create a new geometry column on the table.
at line 1417
ColumnDefinition
geography(string $column, string|null $subtype = null, int $srid = 4326)
Create a new geography column on the table.
at line 1429
ColumnDefinition
vector(string $column, int|null $dimensions = null)
Create a new vector column on the table.
at line 1441
ColumnDefinition
tsvector(string $column)
Create a new tsvector column on the table.
at line 1449
void
morphs(string $name, string|null $indexName = null, string|null $after = null)
Add the proper columns for a polymorphic table.
at line 1463
void
nullableMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add nullable columns for a polymorphic table.
at line 1477
void
numericMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add the proper columns for a polymorphic table using numeric IDs (incremental).
at line 1491
void
nullableNumericMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add nullable columns for a polymorphic table using numeric IDs (incremental).
at line 1507
void
uuidMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add the proper columns for a polymorphic table using UUIDs.
at line 1521
void
nullableUuidMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add nullable columns for a polymorphic table using UUIDs.
at line 1537
void
ulidMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add the proper columns for a polymorphic table using ULIDs.
at line 1551
void
nullableUlidMorphs(string $name, string|null $indexName = null, string|null $after = null)
Add nullable columns for a polymorphic table using ULIDs.
at line 1569
ColumnDefinition
rememberToken()
Add the remember_token column to the table.
at line 1579
ColumnDefinition
rawColumn(string $column, string $definition)
Create a new custom column on the table.
at line 1587
Fluent
comment(string $comment)
Add a comment to the table.
at line 1595
protected IndexDefinition
indexCommand(string $type, array|string $columns, string|null $index, string|null $algorithm = null, string|null $operatorClass = null)
Create a new index command on the blueprint.
at line 1614
protected Fluent
dropIndexCommand(string $command, string $type, array|string|null $index)
Create a new drop index command on the blueprint.
at line 1631
protected string
createIndexName(string $type, array $columns)
Create a default index name for the table.
at line 1651
ColumnDefinition
addColumn(string $type, string $name, array $parameters = [])
Add a new column to the blueprint.
at line 1663
protected ColumnDefinition
newColumnDefinition(array $attributes)
Create a new column definition.
at line 1676
protected ColumnDefinition
addColumnDefinition(ColumnDefinition $definition)
Add a new column definition to the blueprint.
at line 1699
void
after(string $column, Closure $callback)
Add the columns from the callback after the given column.
at line 1713
Blueprint
removeColumn(string $name)
Remove a column from the schema blueprint.
at line 1731
protected Fluent
addCommand(string $name, array $parameters = [])
Add a new command to the blueprint.
at line 1744
protected Fluent
addCommandDefinition(Fluent $definition)
Add a new command definition to the blueprint.
at line 1754
protected Fluent
createCommand(string $name, array $parameters = [])
Create a new Fluent command.
at line 1762
string
getTable()
Get the table the blueprint describes.
at line 1770
Grammar
getGrammar()
Get the schema grammar used by the blueprint.
at line 1783
array
getColumns()
Get the columns on the blueprint.
at line 1793
array
getCommands()
Get the commands on the blueprint.
at line 1809
BlueprintState|null
getState()
Get the state of the blueprint.
at line 1819
array
getAddedColumns()
Get the columns on the blueprint that should be added.
at line 1832
protected int|null
defaultTimePrecision()
Get the default time precision.
at line 1840
static void
flushState()
Flush all static state.