Fix on AdminLTE 3, and add some features

This commit is contained in:
Ludovic CANDELLIER
2020-05-09 01:05:55 +02:00
parent d0e3bb6251
commit 86a073cad7
27 changed files with 670 additions and 95 deletions

View File

@@ -9,8 +9,14 @@ class ArticleAttributeValue extends Model
protected $guarded = ['id'];
protected $table = 'shop_article_attribute_values';
public function attribute_family()
public function AttributeFamily()
{
return $this->belongsTo('App\Models\Shop\ArticleAttributeFamily');
}
public function scopeByFamily($query, $attribute_family_id)
{
return $query->where('attribute_family_id', $attribute_family_id);
}
}