v4.0.4
This unified release includes updates for multiple Laravel versions:
Upgrades
sum(),avg(),min()andmax()can now process multiple fields in one call
Product::where('color','blue')->avg(['orders', 'price']);
//Previously required two separate calls:
Product::where('color','blue')->avg('orders');
Product::where('color','blue')->avg('price');rawSearch(array $bodyParams, bool $returnRaw = false)- a second bool parameter will return data as is (unsanitized) if set to
true
Product::rawSearch($body, true);Bug fixes
- rawAggregation with multiple aggregations now returns all aggs
- Fixed issue when saving fields where the data didn't change threw an error
Full Changelog: v4.0.3...v4.0.4