public function guard()
    {
        if ($this->isHttpMethodFiltered($this->request->getMethod())) {
            $formName = $this->getProvidedFormName();
            $providedToken = $this->getProvidedCsrfToken();
            if (is_null($formName) || is_null($providedToken)) {
                throw new InvalidCsrfException();
            }
            if (!$this->validateToken($formName, $providedToken)) {
                throw new InvalidCsrfException();
            }
        }
    }
public function guard()
    {
        if ($this->isHttpMethodFiltered($this->request->getMethod())) {
            $formName = $this->getProvidedFormName();
            $providedToken = $this->getProvidedCsrfToken();
            if (is_null($formName) || is_null($providedToken)) {
                throw new InvalidCsrfException();
            }
            if (!$this->validateToken($formName, $providedToken)) {
                throw new InvalidCsrfException();
            }
        }
    }
public function guard ( ) { if ( $ this -> isHttpMethodFiltered ( $ this -> request -> getMethod ( ) ) ) { $ formName = $ this -> getProvidedFormName ( ) ; $ providedToken = $ this -> getProvidedCsrfToken ( ) ; if ( is_null ( $ formName ) || is_null ( $ providedToken ) ) { throw new InvalidCsrfException ( ) ; } if ( ! $ this -> validateToken ( $ formName , $ providedToken ) ) { throw new InvalidCsrfException ( ) ; } } }
Proceeds to filter the current request for any CSRF mismatch. Forms must provide
its unique name and corresponding generated csrf token.

@throws InvalidCsrfException
Proceeds to filter the current request for any CSRF mismatch . Forms must provide its unique name and corresponding generated csrf token .