Fix on new model

This commit is contained in:
Ludovic CANDELLIER
2020-07-26 23:48:12 +02:00
parent 71e27ce9c3
commit ef791fbcf2
4 changed files with 25 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ class ArticlePrices
public static function getByArticleWithAttribute($id)
{
return ArticlePrice::with('article_attribute')->byArticle($id)->get();
return ArticlePrice::with('article_attribute.attribute_value')->byArticle($id)->get();
}
public static function getDatatable()