Answers for "count group by laravel"

PHP
1

groupby in laravel with count

$user_info = Usermeta::groupBy('browser')->select('browser', DB::raw('count(*) as total'))->get();
Posted by: Guest on March-19-2021
0

count column eloquent laravel

$total = Post::sum('views');
Posted by: Guest on November-22-2020

Browse Popular Code Answers by Language