Skip to main content

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

Premium
3:12

The Full Lesson is Only for Premium Members

Want to access all of our courses? (36 h 00 min)

You also get:

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

Already a member? Login here

khaled avatar

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?

Povilas Korop avatar

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.