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

@@ -13,9 +13,9 @@ class ArticlePrice extends Model
return $this->belongsTo('App\Models\Shop\Article');
}
public function ArticleAttribute()
public function ArticleAttributes()
{
return $this->belongsTo('App\Models\Shop\ArticleAttribute');
return $this->hasMany('App\Models\Shop\ArticleAttribute');
}
public function scopeByArticle($query, $id)