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

@@ -30,9 +30,9 @@ class Article extends Model
return $this->hasMany('App\Models\Shop\ArticlePrice');
}
public function ArticleAttributes()
public function Attributes()
{
return $this->hasMany('App\Models\Shop\ArticleAttribute');
return $this->hasManyThrough('App\Models\Shop\ArticleAttribute','App\Models\Shop\ArticlePrice');
}
public function Categories()