laravel query count group by using where clause 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();