Skip to content

v4.0.4

Compare
Choose a tag to compare
@pdphilip pdphilip released this 17 Aug 21:15
· 102 commits to main since this release

This unified release includes updates for multiple Laravel versions:


Upgrades

  • sum(), avg(), min() and max() 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