class
Illuminate
/
Database
/
Schema
/
ForeignIdColumnDefinition
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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 ) : ForeignKeyDefinition
Create a foreign key constraint on this column referencing the "id" column of the conventionally related table.
Parameters
- $table string|null
- $column string
public
references ( $column ) : ForeignKeyDefinition
Specify which column this foreign ID references on another table.
Parameters
- $column string