Skip to content

Commit 63e141a

Browse files
authored
Merge pull request #49 from eporsche/fix_vacation_entitlement_transfer
add big decimal cast for days
2 parents 843aa17 + d45a6fb commit 63e141a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Models/VacationEntitlementTransfer.php

+6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
namespace App\Models;
44

5+
use App\Casts\BigDecimalCast;
56
use Illuminate\Database\Eloquent\Relations\Pivot;
67

78
class VacationEntitlementTransfer extends Pivot
89
{
10+
11+
protected $casts = [
12+
'days' => BigDecimalCast::class
13+
];
14+
915
/**
1016
* @var string
1117
*/

0 commit comments

Comments
 (0)