class BlueprintState

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.

array
getColumns()

Get the columns.

array
getIndexes()

Get the indexes.

array
getForeignKeys()

Get the foreign keys.

void
update(Fluent $command)

Update the blueprint's state.

Details

at line 54
__construct(Blueprint $blueprint, Connection $connection)

Create a new blueprint state instance.

Parameters

Blueprint $blueprint
Connection $connection

at line 104
Fluent|IndexDefinition|null getPrimaryKey()

Get the primary key.

Return Value

Fluent|IndexDefinition|null

at line 114
array getColumns()

Get the columns.

Return Value

array

at line 124
array getIndexes()

Get the indexes.

Return Value

array

at line 134
array getForeignKeys()

Get the foreign keys.

Return Value

array

at line 142
void update(Fluent $command)

Update the blueprint's state.

Parameters

Fluent $command

Return Value

void