cache responces achyklar

This commit is contained in:
merdan 2022-12-17 13:31:48 +05:00
parent ac820283cd
commit 0f38aa0480
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class Brand extends Model implements BrandContract
return $this->hasMany(ProductProxy::modelClass(), 'brand_id'); return $this->hasMany(ProductProxy::modelClass(), 'brand_id');
} }
public function flats():BelongsToMany{ public function flats():HasMany{
return $this->belongsToMany(ProductFlatProxy::modelClass(), 'brand_id'); return $this->hasMany(ProductFlatProxy::modelClass(), 'brand_id');
} }
public function sellers():BelongsToMany public function sellers():BelongsToMany