From 70d263dfa2ecd149253fbb33c9f1e4b47d7a74a6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Dec 2022 13:43:41 +1100 Subject: [PATCH] Add timestamps for payment methods in export --- app/Traits/GenerateMigrationResources.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index def63b4ac7af..2d6ae8ba1d0f 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -1773,6 +1773,9 @@ trait GenerateMigrationResources 'gateway_type_id' => $payment_method->payment_type->gateway_type_id, 'is_default' => $is_default, 'meta' => $this->convertMeta($payment_method), + 'created_at' => $payment_method->created_at ? Carbon::parse($payment_method->created_at)->toDateString() : null, + 'updated_at' => $payment_method->updated_at ? Carbon::parse($payment_method->updated_at)->toDateString() : null, + 'deleted_at' => $payment_method->deleted_at ? Carbon::parse($payment_method->deleted_at)->toDateString() : null, ]; $is_default = false;