cleaning day
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Wildside\Userstamps\Userstamps;
|
||||
use Znck\Eloquent\Relations\BelongsToThrough as RelationsBelongsToThrough;
|
||||
use Znck\Eloquent\Traits\BelongsToThrough;
|
||||
|
||||
class PriceListValue extends Model
|
||||
@@ -15,12 +17,12 @@ class PriceListValue extends Model
|
||||
|
||||
protected $table = 'shop_price_list_values';
|
||||
|
||||
public function price_list()
|
||||
public function price_list(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(PriceList::class);
|
||||
}
|
||||
|
||||
public function tariff()
|
||||
public function tariff(): RelationsBelongsToThrough
|
||||
{
|
||||
return $this->belongsToThrough(
|
||||
Tariff::class,
|
||||
@@ -34,7 +36,7 @@ class PriceListValue extends Model
|
||||
);
|
||||
}
|
||||
|
||||
public function vat()
|
||||
public function vat(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Tax::class, 'tax_id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user