[WIP] Claims
This commit is contained in:
@@ -18,6 +18,17 @@ class Claim extends Model
|
||||
'currency',
|
||||
'plan_id',
|
||||
'benefit_id',
|
||||
'status',
|
||||
'requested_at',
|
||||
'requested_by',
|
||||
'received_at',
|
||||
'received_by',
|
||||
'approved_at',
|
||||
'approved_by',
|
||||
'declined',
|
||||
'declined_by',
|
||||
'paid_at',
|
||||
'paid_by',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
@@ -75,7 +86,7 @@ class Claim extends Model
|
||||
{
|
||||
return $query
|
||||
->whereIn('status', ['approved', 'paid'])
|
||||
->whereBetween('requested_at', $startDate, $endDate);
|
||||
->whereBetween('requested_at', [$startDate, $endDate]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user