collect
This commit is contained in:
parent
50ef1f2a3b
commit
bfc91a9b48
@ -184,7 +184,7 @@ class PropertyService extends Service
|
||||
})->toArray();
|
||||
|
||||
$sells = DB::table('virtual_order_cards')->selectRaw('company_id, package_id, count(*) as counts')
|
||||
->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) {
|
||||
->groupBy(['company_id', 'package_id'])->get()->collect()->keyBy(function ($item) {
|
||||
return $item->company_id . '_' . $item->package_id;
|
||||
})->toArray();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user