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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community