public function logLoginAttempt($username, array $errors = [])
    {
        if ($this->app) {
            $entry = $this->app->make(LoginAttempt::class, [
                $username,
                $this->request ? $this->request->getPath() : '',
                $this->getGroups($username),
                $errors
            ]);

            $context = $entry->getContext();
            $context['ip_address'] = (string) $this->ipService->getRequestIPAddress();
            $this->logger->info($entry->getMessage(), $context);
        }
    }