count with group by in 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();