I believe that you can actually use some of the query builder functions through Eloquent querys.
I'd give something like this a try...
Product::with( 'urls','prices')->where('user_id', '=', $id)->min('cost')->get();
So long as there isn't a collision with the min column and another column within the Products or Urls table, this might work.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community