Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

group users on country vice in laravel

$getUserCountries = User::select('country', DB::raw('count(*) as count'))
                          ->groupBy('country')
                          ->get()->
                          toArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group #users #country #vice #laravel
ADD COMMENT
Topic
Name
3+6 =