BlueprintState
class BlueprintState (View source)
Properties
| protected Blueprint | $blueprint | The blueprint instance. |
|
| protected Connection | $connection | The connection instance. |
Methods
IndexDefinition|null
getPrimaryKey()
Get the primary key.
getColumns()
Get the columns.
getIndexes()
Get the indexes.
getForeignKeys()
Get the foreign keys.
Details
__construct(Blueprint $blueprint, Connection $connection)
Create a new blueprint state instance.
IndexDefinition|null
getPrimaryKey()
Get the primary key.
ColumnDefinition[]
getColumns()
Get the columns.
IndexDefinition[]
getIndexes()
Get the indexes.
ForeignKeyDefinition[]
getForeignKeys()
Get the foreign keys.
void
update(Fluent $command)
Update the blueprint's state.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.