src/csrf/CSRFGuard.php
protected function tokensMatch(Request $request)
    {
        $token = $this->getTokenFromRequest($request);
        $storedToken = $this->getToken();
        
        return  is_string($storedToken) &&
                is_string($token) &&
                hash_equals($storedToken, $token);
    }
protected function tokensMatch(Request $request)
    {
        $token = $this->getTokenFromRequest($request);
        $storedToken = $this->getToken();
        
        return  is_string($storedToken) &&
                is_string($token) &&
                hash_equals($storedToken, $token);
    }
Determine if the storage and input CSRF tokens match.

@param  Request $request
@return boolean