src/Koldy/Security/Csrf.php
public static function hasCookieToken(): bool
    {
        $cookieName = static::getCookieName();

        if ($cookieName === null || strlen($cookieName) == 0) {
            throw new Exception('Can not check if CSRF token is in cookie when cookie name is not set in CSRF configuration');
        }

        return Cookie::has($cookieName);
    }
public static function hasCookieToken(): bool
    {
        $cookieName = static::getCookieName();

        if ($cookieName === null || strlen($cookieName) == 0) {
            throw new Exception('Can not check if CSRF token is in cookie when cookie name is not set in CSRF configuration');
        }

        return Cookie::has($cookieName);
    }
public static function hasCookieToken ( ) : bool { $ cookieName = static :: getCookieName ( ) ; if ( $ cookieName === null || strlen ( $ cookieName ) == 0 ) { throw new Exception ( 'Can not check if CSRF token is in cookie when cookie name is not set in CSRF configuration' ) ; } return Cookie :: has ( $ cookieName ) ; }
Is there a cookie with CSRF token present in this request?

@return bool
@throws ConfigException
@throws Exception
@throws \Koldy\Exception
Is there a cookie with CSRF token present in this request?