src/RecaptchaServiceProvider.php
public function addValidator()
    {
        $this->app->validator->extendImplicit('recaptcha', function ($attribute, $value, $parameters) {
            $captcha   = app('recaptcha.service');
            $challenge = app('request')->input($captcha->getResponseKey());

            return $captcha->check($challenge, $value);
        }, 'Please ensure that you are a human!');
    }
public function addValidator()
    {
        $this->app->validator->extendImplicit('recaptcha', function ($attribute, $value, $parameters) {
            $captcha   = app('recaptcha.service');
            $challenge = app('request')->input($captcha->getResponseKey());

            return $captcha->check($challenge, $value);
        }, 'Please ensure that you are a human!');
    }
public function addValidator ( ) { $ this -> app -> validator -> extendImplicit ( 'recaptcha' , function ( $ attribute , $ value , $ parameters ) { $ captcha = app ( 'recaptcha.service' ) ; $ challenge = app ( 'request' ) -> input ( $ captcha -> getResponseKey ( ) ) ; return $ captcha -> check ( $ challenge , $ value ) ; } , 'Please ensure that you are a human!' ) ; }
Extends Validator to include a recaptcha type
Extends Validator to include a recaptcha type