HasUniqueIds
trait HasUniqueIds (View source)
Properties
bool | $usesUniqueIds | Indicates if the model uses unique ids. |
Methods
bool
usesUniqueIds()
Determine if the model uses unique ids.
void
setUniqueIds()
Generate a unique keys for model.
string
newUniqueId()
Generate a new key for the model.
array
uniqueIds()
Get the columns that should receive a unique identifier.
Details
bool
usesUniqueIds()
Determine if the model uses unique ids.
void
setUniqueIds()
Generate a unique keys for model.
string
newUniqueId()
Generate a new key for the model.
array
uniqueIds()
Get the columns that should receive a unique identifier.