laravel eloquent average code example Example: laravel get average from a column $avgStar = Model::avg('star');