tokenName = $tokenName; } public function includeUser(User $user) { return $this->item($user, new UserTransformer($this->account)); } public function transform(User $user) { return [ 'account_key' => $user->account->account_key, 'name' => $user->account->present()->name, 'token' => $user->account->getToken($this->tokenName), 'default_url' => SITE_URL ]; } }