Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

groupby in laravel with count

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