From ca731adce78809c1d1eb026604991e0ee79c056f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 26 Jan 2019 12:11:23 +0100 Subject: [PATCH] Add account name to piggy bank transformer API. --- app/Transformers/PiggyBankTransformer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Transformers/PiggyBankTransformer.php b/app/Transformers/PiggyBankTransformer.php index 63cb9232c2..f922c3ff03 100644 --- a/app/Transformers/PiggyBankTransformer.php +++ b/app/Transformers/PiggyBankTransformer.php @@ -104,6 +104,7 @@ class PiggyBankTransformer extends AbstractTransformer 'created_at' => $piggyBank->created_at->toAtomString(), 'updated_at' => $piggyBank->updated_at->toAtomString(), 'account_id' => $piggyBank->account_id, + 'account_name' => $piggyBank->account->name, 'name' => $piggyBank->name, 'currency_id' => $currency->id, 'currency_code' => $currency->code,