Changed date casting for Laravel 10.

This commit is contained in:
boracakirel 2023-06-12 16:27:30 +03:00
parent 8afee14fea
commit c551b7b9f6

View File

@ -11,8 +11,6 @@ class Reconciliation extends Model
protected $table = 'reconciliations';
protected $dates = ['deleted_at', 'started_at', 'ended_at'];
/**
* Attributes that should be mass-assignable.
*
@ -30,6 +28,8 @@ class Reconciliation extends Model
'reconciled' => 'boolean',
'transactions' => 'array',
'deleted_at' => 'datetime',
'started_at' => 'datetime',
'ended_at' => 'datetime',
];
/**