From 32bddeca44afe51c354a72225117077f851bf15d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 20 May 2021 14:13:07 +1000 Subject: [PATCH] Add client and contacts to ninja migration --- app/Traits/GenerateMigrationResources.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 22ce9fda4464..fccaace26ec1 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -373,6 +373,8 @@ info("get company"); 'gateway_type_id' => $payment_method->payment_type->gateway_type_id, 'is_default' => $is_default, 'meta' => $this->convertMeta($payment_method), + 'client' => $contact->client->toArray(), + 'contacts' => $contact->client->contacts->toArray(), ]; }