menu Controller

This commit is contained in:
merdan 2022-09-22 13:46:31 +05:00
parent c9126ec5cd
commit 0602a88727
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Product extends JsonResource
{
if($this->type == 'configurable')
{
$product = $this->variants()->with('product_flat')->orderBy('product_flat.min_price')->first();
$product = $this->variants()->with('product_flats')->orderBy('product_flat.min_price')->first();
}else{
$product = $this->product ? $this->product : $this;