refactor, better class namespace intergration
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user