Usefull mathematic algorithm in laravel A. Average Value $price = DB::table(‘orders’) ->where(‘finalized’, 1) ->avg(‘price’); A. Sum Value $price = DB::table(‘orders’) ->where(‘finalized’, 1) ->sum(‘price’); You Might Also Like What is controller ? April 27, 2023 Jquery php/laravel datatable February 19, 2024 Google login in laravel November 26, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.