![Cosme Escobedo on Twitter: " Laravel Tip: Eager load and filter by a nested relationship. If you need to filter a model by a nested relationship and are also eager load both of the relationships you can create a closure that takes care of the logic and pass it to ... Cosme Escobedo on Twitter: " Laravel Tip: Eager load and filter by a nested relationship. If you need to filter a model by a nested relationship and are also eager load both of the relationships you can create a closure that takes care of the logic and pass it to ...](https://pbs.twimg.com/media/FcwItmLaAAA-fku.jpg)
Cosme Escobedo on Twitter: " Laravel Tip: Eager load and filter by a nested relationship. If you need to filter a model by a nested relationship and are also eager load both of the relationships you can create a closure that takes care of the logic and pass it to ...
![hasMany relationship search filter throws an error · Issue #80 · spatie/ laravel-query-builder · GitHub hasMany relationship search filter throws an error · Issue #80 · spatie/ laravel-query-builder · GitHub](https://user-images.githubusercontent.com/11868287/41609731-2426ead6-7409-11e8-881d-bb0130d48d71.png)