I have the following Eloquent ORM query.
$products2 = Product::with(\'metal\', \'metal.fixes\', \'metal.fixes.currency\')
->where(\'metal_id\', \'=\', 1)
You are looking for "Eager Load Constraints": http://laravel.com/docs/eloquent#querying-relations
<?php
$products2 = Product::with(array('metal', 'metal.fixes', 'metal.fixes.currency' => function($query){
$query->where('currency_id', '=', 1);
}))
->where('metal_id', '=', 1)
->get()->toArray();