The error is quite obvious !! You should remove the semicolon. You should remove semicolon which exists before whereHas() method's closed parentheses.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community