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

@@ -17,17 +17,17 @@ class Tariff extends Model
public function sale_channel()
{
return $this->belongsTo('App\Models\Shop\SaleChannel');
return $this->belongsTo(SaleChannel::class);
}
public function tariff_unity()
{
return $this->belongsTo('App\Models\Shop\TariffUnity');
return $this->belongsTo(TariffUnity::class);
}
public function price_lists()
{
return $this->hasMany('App\Models\Shop\PriceList');
return $this->hasMany(PriceList::class);
}
public function scopeBySaleChanel($query, $id)