Add properties filtering and relationships in Product model
This commit is contained in:
1 parent
45bc0b61a1
commit
38fa0e2e45
11 files changed
+227
-2
No files matched your search
@@ -69,4 +69,12 @@ public function value(): BelongsTo
|
||||
{
|
||||
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