class Illuminate / Database / Schema / ForeignIdColumnDefinition
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ForeignIdColumnDefinition

Extends

Properties

protected

$blueprint Blueprint

The schema builder blueprint instance.

Default: null

Methods

public

__construct ( Blueprint $blueprint , $attributes ) : void

Create a new foreign ID column definition.

Parameters

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