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