class
Illuminate
/
Database
/
Schema
/
ForeignIdColumnDefinition
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ForeignIdColumnDefinition
Extends
Properties
Methods
public
__construct ( Blueprint $blueprint , $attributes ) : void
Create a new foreign ID column definition.
Parameters
- $blueprint Blueprint
- $attributes array
public
constrained ( $table , $column , $indexName ) : ForeignKeyDefinition
Create a foreign key constraint on this column referencing the "id" column of the conventionally related table.
Parameters
- $table string|null
- $column string|null
- $indexName string|null
public
references ( $column , $indexName ) : ForeignKeyDefinition
Specify which column this foreign ID references on another table.
Parameters
- $column string
- $indexName string