Did you try this
$query->where('hospitals_doctors.hospital_id', 2)
Yes, i'm currently using that as a temporary fix.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community