trait HasUniqueIds

Properties

bool $usesUniqueIds

Indicates if the model uses unique ids.

Methods

bool
usesUniqueIds()

Determine if the model uses unique ids.

void
setUniqueIds()

Generate unique keys for the model.

string|null
newUniqueId()

Generate a new key for the model.

array
uniqueIds()

Get the columns that should receive a unique identifier.

Details

at line 17
bool usesUniqueIds()

Determine if the model uses unique ids.

Return Value

bool

at line 25
void setUniqueIds()

Generate unique keys for the model.

Return Value

void

at line 37
string|null newUniqueId()

Generate a new key for the model.

Return Value

string|null

at line 47
array uniqueIds()

Get the columns that should receive a unique identifier.

Return Value

array