has method

ModelQuery<T> has(
  1. String relation
)

Models with at least one related row through relation.

Implementation

ModelQuery<T> has(String relation) => whereHas(relation);