count in groupby laravel code example
Example: groupby in laravel with count
$user_info = Usermeta::groupBy('browser')->select('browser', DB::raw('count(*) as total'))->get();
$user_info = Usermeta::groupBy('browser')->select('browser', DB::raw('count(*) as total'))->get();