Laravel Wherehas On Relation, … You can use whereHas() in scopes to query relationships.