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