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

ModelIdentifier

Properties

public

$class string

The class name of the model.

Default: null
public

$id mixed

The unique identifier of the model.

This may be either a single ID or an array of IDs.

Default: null
public

$relations array

The relationships loaded on the model.

Default: null
public

$connection string|null

The connection name of the model.

Default: null

Methods

public

__construct ( $class , $id , array $relations , $connection ) : void

Create a new model identifier.

Parameters

  • $class string
  • $id mixed
  • $relations array
  • $connection mixed