I have a Product model
class Product extends Model { ... public function prices() { return $this->hasMany(\'App\\Price\'); }
Use Eloquent accessors
public function getLowestAttribute() { return $this->prices->min('price'); }
Then
$product->lowest;