Closed ghost closed 9 years ago
Hi, I'm gonna go ahead and assume you are using Laravel 5.1. I've had the same issue and this is how i managed to solve it: In the 'NoCaptchaServiceProvider' class, your 'register' method should look like this:
public function boot()
{
$app = $this->app;
$this->bootConfig();
Validator::extendImplicit('captcha', function ($attribute, $value, $parameters) use ($app){
return $app['captcha']->verifyResponse($value, $app['request']->getClientIp());
});
if ($app->bound('form')) {
$app['form']->macro('captcha', function ($attributes = []) use ($app) {
return $app['captcha']->display($attributes, $app->getLocale());
});
}
}
Don't forget to import the 'Validator' facade.
use Validator;
sorry im closing this, the code above is for my signup page, so the captcha actualy works, i forgot to implements the captcha for my login page.. My Bad
my no-captcha validation is not working, i can signin without clicking on captcha
this is my validation code
username, email, password are working, what am i doing wrong ?