Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

Just figured it out: whereHas() takes a 3rd and 4th argument for the operator (i.e. ">=") and the count (i.e. 1). Passing in "=" and "2" solved my issue.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

cviebrock cviebrock Joined 25 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.