Answers for "how to use groupby in laravel qloquent"

PHP
4

group by laravel

$user_info = DB::table('usermetas')
                 ->select('browser', DB::raw('count(*) as total'))
                 ->groupBy('browser')
                 ->get();
Posted by: Guest on August-06-2020

Code answers related to "how to use groupby in laravel qloquent"

Browse Popular Code Answers by Language