true
false
​
false
​
false
false
has
constraint will only return entities that have one or more of the related entity.true
false
​
false
​
doesntHave
constraint will only return entities that have zero of the related entity.true
true
false
​
false
​
false
false
whereHas
. This method operates similarly to has
but also accepts a callback to configure the relationship constraint.whereHas
callback is passed a builder instance configured according to the relationship. You may call any entity or query builder methods on it as usual.true
true
false
​
false
​
whereDoesntHave
callback is passed a builder instance configured according to the relationship. You may call any entity or query builder methods on it as usual.