master
cody 3 weeks ago
parent 5804d12765
commit e50b733bd2

@ -187,8 +187,8 @@ class OtherController extends CommonController
$country = []; $country = [];
foreach ($countryArea as $item) { foreach ($countryArea as $item) {
$country[] = [ $country[] = [
'company_city' => $item->company_city, 'area' => $item->company_city,
'company_total' => User::whereHas('company', function ($query) use ($item) { 'total' => User::whereHas('company', function ($query) use ($item) {
$query->where('company_city', $item->company_city); $query->where('company_city', $item->company_city);
})->where('is_schoolmate', 1)->count() })->where('is_schoolmate', 1)->count()
]; ];

Loading…
Cancel
Save