Use condition filter after with() or load() Laravel Eloquent
Imagine we have a Facture and Item model in a one-to-many relationship. I'm using $facture->items() or $facture->load('items') and it works perfectly. However, when I need to use a condition on items like where('items.price', 30), I have no idea how to…