ComparesRelatedModels
trait ComparesRelatedModels (View source)
Methods
bool
mixed
getParentKey()
Get the value of the parent model's key.
mixed
bool
compareKeys(mixed $parentKey, mixed $relatedKey)
Compare the parent key with the related key.
Details
bool
isNot(Model|null $model)
Determine if the model is not the related instance of the relationship.