groupby color

This commit is contained in:
merdan 2022-04-01 16:00:35 +05:00
parent 1935be167d
commit 6474ef6f67
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class CartItemProduct extends JsonResource
return [
'code' => $item->code,
'value' => $this->{$item->code},
'name' => $item->name,
'name' => $item->name ?? $item->admin_name,
'label' => $item->options->where('id',$this->{$item->code})->first()->admin_name
];
})->toArray();