Merge pull request #805 from jitendra-webkul/jitendra

Issue #803 fixed
This commit is contained in:
Jitendra Singh 2019-04-05 11:44:18 +05:30 committed by GitHub
commit 4b73c3e980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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.
*/

View File

@ -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.
*/