Add new data in getBasket context

This commit is contained in:
Ludovic CANDELLIER
2022-04-24 23:49:28 +02:00
parent 416c724ad1
commit 570374bab7
5 changed files with 13 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ class PriceListValue extends Model
public function tariff()
{
return $this->belongsToThrough('App\Models\Shop\Tariff', 'App\Models\Shop\PriceList', null, '',
return $this->belongsToThrough(Tariff::class, PriceList::class, null, '',
[
'App\Models\Shop\Tariff' => 'tariff_id',
'App\Models\Shop\PriceList' => 'price_list_id',