Laravel 9 how to filter item in $with result?
I have this piece of code that filters only companies that have some customerRewards related to and belonging to some customer. The whereHas() filter works fine, but the result of customerRewards from $ also contains items with different customer IDs.…