src/NoCaptchaServiceProvider.php
private function registerValidatorRules($app)
    {
        $app['validator']->extend('captcha', function($attribute, $value) use ($app) {
            unset($attribute);
            $ip = $app['request']->getClientIp();

            return $app[Contracts\NoCaptcha::class]->verify($value, $ip);
        });
    }
private function registerValidatorRules($app)
    {
        $app['validator']->extend('captcha', function($attribute, $value) use ($app) {
            unset($attribute);
            $ip = $app['request']->getClientIp();

            return $app[Contracts\NoCaptcha::class]->verify($value, $ip);
        });
    }
Register Validator rules.

@param  \Illuminate\Foundation\Application  $app