cache responces achyklar

This commit is contained in:
merdan 2022-12-17 13:30:18 +05:00
parent f641e6e576
commit ac820283cd
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():HasMany{ public function flats():BelongsToMany{
return $this->hasMany(ProductFlatProxy::modelClass(), 'brand_id'); return $this->belongsToMany(ProductFlatProxy::modelClass(), 'brand_id');
} }
public function sellers():BelongsToMany public function sellers():BelongsToMany