Changed date casting for Laravel 10.
This commit is contained in:
parent
8afee14fea
commit
c551b7b9f6
@ -11,8 +11,6 @@ class Reconciliation extends Model
|
|||||||
|
|
||||||
protected $table = 'reconciliations';
|
protected $table = 'reconciliations';
|
||||||
|
|
||||||
protected $dates = ['deleted_at', 'started_at', 'ended_at'];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attributes that should be mass-assignable.
|
* Attributes that should be mass-assignable.
|
||||||
*
|
*
|
||||||
@ -30,6 +28,8 @@ class Reconciliation extends Model
|
|||||||
'reconciled' => 'boolean',
|
'reconciled' => 'boolean',
|
||||||
'transactions' => 'array',
|
'transactions' => 'array',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
|
'started_at' => 'datetime',
|
||||||
|
'ended_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user