This commit is contained in:
David Bomba 2015-11-03 19:13:15 +11:00
parent 6f320aa624
commit d0f8fca420

View File

@ -16,7 +16,7 @@ class AccountTransformer extends TransformerAbstract
{ {
$account_token = AccountToken::whereAccountId($account->id)->whereName('ios_api_token')->first(); $account_token = AccountToken::whereAccountId($account->id)->whereName('ios_api_token')->first();
return $this->collection($account_token, new AccountTokenTransformer); return $this->Item($account_token, new AccountTokenTransformer);
} }
public function includeUsers($account) public function includeUsers($account)