I want to get numbers of student in each class. i used this query before.
$group=DB::table('students')->groupBy('class');
What will be the query for getting student numbers in each class? please help
I want to get numbers of student in each class. i used this query before.
$group=DB::table('students')->groupBy('class');
What will be the query for getting student numbers in each class? please help