FleetCart/Modules/Order/Entities/OrderTax.php

15 lines
277 B
PHP
Raw Permalink Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Modules\Order\Entities;
use Modules\Support\Money;
use Illuminate\Database\Eloquent\Relations\Pivot;
class OrderTax extends Pivot
{
public function getAmountAttribute($amount)
{
return Money::inDefaultCurrency($amount);
}
}