Add properties filtering and relationships in Product model
This commit is contained in:
@@ -69,4 +69,12 @@ class ProductAttributeValue extends Model
|
||||
{
|
||||
return $this->belongsTo(AttributeValue::class, 'attribute_value_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Product Property
|
||||
*/
|
||||
public function productProperty(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ProductProperty::class, 'product_attribute_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user