refactor, better class namespace intergration

This commit is contained in:
Ludovic CANDELLIER
2021-10-04 14:09:51 +02:00
parent a7f661ab10
commit c150be2c3e
26 changed files with 68 additions and 78 deletions

View File

@@ -11,11 +11,11 @@ class PriceGenericCategory extends Model
public function article_family()
{
return $this->belongsTo('App\Models\Shop\ArticleNature');
return $this->belongsTo(ArticleNature::class);
}
public function price_generics()
{
return $this->hasMany('App\Models\Shop\PriceGeneric', 'category_id');
return $this->hasMany(PriceGeneric::class, 'category_id');
}
}