protected function registerValidator()
    {
        Validator::extend(config('bone.captcha.validator'), function ($attribute, $value, $parameters, $validator) {
            return $this->app[Captcha::class]->validate($value);
        }, trans('bone::captcha.incorrect_code'));
    }
protected function registerValidator()
    {
        Validator::extend(config('bone.captcha.validator'), function ($attribute, $value, $parameters, $validator) {
            return $this->app[Captcha::class]->validate($value);
        }, trans('bone::captcha.incorrect_code'));
    }
protected function registerValidator ( ) { Validator :: extend ( config ( 'bone.captcha.validator' ) , function ( $ attribute , $ value , $ parameters , $ validator ) { return $ this -> app [ Captcha :: class ] -> validate ( $ value ) ; } , trans ( 'bone::captcha.incorrect_code' ) ) ; }
Register captcha validator.
Register captcha validator .