Answers for "COUNT BY all status"

1

COUNT BY all status

$data = booking::all();
$count = $data->groupBy('status')->map->count();
Posted by: Guest on February-18-2021

Browse Popular Code Answers by Language