Constrain eager loads on a pivot
Let me sketch the situation Tables and models -products -languages -language_product product_id language_id slug Products and languages are connected with many to many. Now I have a function .show ($slug) where I want to get a product with a certain slug. Product::with(['language' => function($query...