Add account name to piggy bank transformer API.

This commit is contained in:
James Cole 2019-01-26 12:11:23 +01:00
parent ca71f3008c
commit ca731adce7

View File

@ -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,