Answers for "how to use group by in laravel6"

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 group by in laravel6"

Browse Popular Code Answers by Language