Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Aggregation: withAvg(), withMin() and withMax()

Premium
3:12

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 14 min)

You also get:

54 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

K
khaled ✓ Link copied!

Well, does it function properly if I use views in (MySQL or Postgres) and perform the math on the database level before just selecting the result?

PK
Povilas Korop ✓ Link copied!

If you use DB views for aggregation, then you don't need those functions from Eloquent, you just select the data from your view, I imagine.

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.