Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method validateCaptcha does not exist. #34

Closed
wiyfn opened this issue Apr 24, 2015 · 6 comments
Closed

Method validateCaptcha does not exist. #34

wiyfn opened this issue Apr 24, 2015 · 6 comments

Comments

@wiyfn
Copy link

wiyfn commented Apr 24, 2015

I have following issue: Method [validateCaptcha] does not exist.BadMethodCallException in Validator.php line 2615:

use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
use Mews\Captcha;
....
 protected $rules = array(
        'name'     => 'required',
        'captcha'  => 'required|captcha');
.....
 $validation = Validator::make($data, $this->rules);
......

@mewebstudio
Copy link
Owner

Update package
composer update
and
composer dump-autoload
try this way again.

@wiyfn wiyfn closed this as completed Apr 27, 2015
@wiyfn
Copy link
Author

wiyfn commented Apr 27, 2015

It work ! Thank.

@closca
Copy link

closca commented Aug 6, 2015

I got same issue on L4, i made what you sugested but the error is still there,

@akanevsky
Copy link

I also got the same issue as the above posters. Please help.

@hoavq214
Copy link

hoavq214 commented Apr 7, 2016

Please help me.

@keepchen
Copy link

keepchen commented Oct 14, 2016

I got same issue on L5.2,but when I tried to add code after line 25 in CaptchaServiceProvider to:
\Validator::extend('captcha', function($attribute, $value, $parameters, $validator){ return captcha_check($value); });
It works. @akanevsky @hoavq214
see #76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants