skip to Main Content

Laravel – Optimize aggregate queries

I have a query like $products = Product::query()->where(...).... I want to read the maximum dimensions for my double range sliders something like: $dimensionLimits = [ 'width' => [ 'min' => $products->min('width'), 'max' => $products->max('width') ], 'height' => [ 'min' =>…

VIEW QUESTION
Back To Top
Search