From c551b7b9f62e6ffae10842d766945fcf21f7b375 Mon Sep 17 00:00:00 2001 From: boracakirel Date: Mon, 12 Jun 2023 16:27:30 +0300 Subject: [PATCH] Changed date casting for Laravel 10. --- app/Models/Banking/Reconciliation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Banking/Reconciliation.php b/app/Models/Banking/Reconciliation.php index 8157c33f7..835d7733f 100644 --- a/app/Models/Banking/Reconciliation.php +++ b/app/Models/Banking/Reconciliation.php @@ -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', ]; /**