commit
4b73c3e980
|
|
@ -11,7 +11,7 @@ class Attribute extends TranslatableModel implements AttributeContract
|
|||
|
||||
protected $fillable = ['code', 'admin_name', 'type', 'position', 'is_required', 'is_unique', 'validation', 'value_per_locale', 'value_per_channel', 'is_filterable', 'is_configurable', 'is_visible_on_front', 'is_user_defined', 'swatch_type'];
|
||||
|
||||
protected $with = ['options'];
|
||||
protected $with = ['options', 'translations'];
|
||||
|
||||
/**
|
||||
* Get the options.
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ class AttributeOption extends TranslatableModel implements AttributeOptionContra
|
|||
|
||||
protected $fillable = ['admin_name', 'swatch_value', 'sort_order', 'attribute_id'];
|
||||
|
||||
protected $with = ['translations'];
|
||||
|
||||
/**
|
||||
* Get the attribute that owns the attribute option.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ class Category extends TranslatableModel implements CategoryContract
|
|||
|
||||
protected $fillable = ['position', 'status', 'display_mode', 'parent_id'];
|
||||
|
||||
protected $with = ['translations'];
|
||||
|
||||
/**
|
||||
* Get image url for the category image.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue