Laravel Version: 5.8 Why doesn't https://github.com/laravel/framework/blob/5.8/src/Illuminate/Redis/...
Did you try this $query->where('hospitals_doctors.hospital_id', 2)
Yes. I use this technic to work with Many-to-Many relationships. Let's say you have a role-permissio...
has and whereHas are used to check if there exist at least one related model looking from the One-si...
The second parameter of whereIn should be an array of a closure. You are passing a query builder obj...
colshrapnel said: Every example I am able to find uses constant value in condition but here I have...
The Laravel portal for problem solving, knowledge sharing and community building.