where clause first and groupby laravel code example
Example 1: group by laravel
$user_info = DB::table('usermetas')
->select('browser', DB::raw('count(*) as total'))
->groupBy('browser')
->get();
Example 2: laravel where like
$users = DB::table('users')
->where('name', 'like', 'T%')
->get();