From bcd586f5adba18f51bb127325c6a7a7bbaaa3cc7 Mon Sep 17 00:00:00 2001 From: Lumiware Date: Mon, 25 Feb 2019 18:34:04 +0100 Subject: [PATCH] Feedback implementation --- app/Models/Subscription.php | 5 ++++- app/Models/Transaction.php | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/Models/Subscription.php b/app/Models/Subscription.php index 4aa5e516a777..f0bf13167337 100644 --- a/app/Models/Subscription.php +++ b/app/Models/Subscription.php @@ -149,7 +149,10 @@ class Subscription extends Model implements HasDeletionPolicy 'start_on' => 'datetime', 'end_on' => 'datetime', 'requested_on' => 'datetime', - 'approved_on' => 'datetime', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime', + 'approved_at' => 'datetime', ]; /** diff --git a/app/Models/Transaction.php b/app/Models/Transaction.php index e1abb6b50d67..43acc8819d61 100644 --- a/app/Models/Transaction.php +++ b/app/Models/Transaction.php @@ -122,9 +122,10 @@ class Transaction extends Model implements HasDeletionPolicy */ protected $casts = [ 'occurred_on' => 'datetime', - 'created_on' => 'datetime', - 'updated_on' => 'datetime', - 'approved_on' => 'datetime', + 'created_at' => 'datetime', + 'updated_at' => 'datetime', + 'deleted_at' => 'datetime', + 'approved_at' => 'datetime', ]; /**