Input
, then apply where()
in a loop for whereHas()
whereHas()
, like in linked post, using data from 1with('profile.yearGroup')
, but this will load all the related models, not filtered. So should you need only filtered, use the constraints on this too.Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community