Groupby di Laravel dengan hitungan
$user_info = Usermeta::groupBy('browser')->select('browser', DB::raw('count(*) as total'))->get();
Clean Cowfish
$user_info = Usermeta::groupBy('browser')->select('browser', DB::raw('count(*) as total'))->get();
$getUserCountries = User::select('country', DB::raw('count(*) as count'))
->groupBy('country')
->get()->
toArray();