class BlueprintState (View source)

Properties

protected Blueprint $blueprint

The blueprint instance.

protected Connection $connection

The connection instance.

Methods

__construct(Blueprint $blueprint, Connection $connection)

Create a new blueprint state instance.

getPrimaryKey()

Get the primary key.

getColumns()

Get the columns.

getIndexes()

Get the indexes.

getForeignKeys()

Get the foreign keys.

void
update(Fluent $command)

Update the blueprint's state.

Details

__construct(Blueprint $blueprint, Connection $connection)

Create a new blueprint state instance.

Parameters

Blueprint $blueprint
Connection $connection

IndexDefinition|null getPrimaryKey()

Get the primary key.

Return Value

IndexDefinition|null

ColumnDefinition[] getColumns()

Get the columns.

Return Value

ColumnDefinition[]

IndexDefinition[] getIndexes()

Get the indexes.

Return Value

IndexDefinition[]

ForeignKeyDefinition[] getForeignKeys()

Get the foreign keys.

Return Value

ForeignKeyDefinition[]

void update(Fluent $command)

Update the blueprint's state.

Parameters

Fluent $command

Return Value

void

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.