id)->whereName('ios_api_token')->first(); return $this->Item($account_token, new AccountTokenTransformer); } public function includeUsers($account) { $users = $account->users; return $this->collection($users, new UserTransformer); } public function transform(Account $account) { return [ 'id' => (int) $account->id, 'name' => $account->name, ]; } }