Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

group by laravel

$user_info = DB::table('usermetas')
                 ->select('browser', DB::raw('count(*) as total'))
                 ->groupBy('browser')
                 ->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group #laravel
ADD COMMENT
Topic
Name
5+2 =