trait Illuminate / Database / Eloquent / Concerns / HasUniqueIds
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

HasUniqueIds

Properties

public

$usesUniqueIds bool

Indicates if the model uses unique ids.

Default: false

Methods

public

usesUniqueIds ( ) : bool

Determine if the model uses unique ids.

public

setUniqueIds ( ) : void

Generate unique keys for the model.

public

newUniqueId ( ) : string

Generate a new key for the model.

public

uniqueIds ( ) : array

Get the columns that should receive a unique identifier.