laravel-google-captcha icon indicating copy to clipboard operation
laravel-google-captcha copied to clipboard

fails() method are always true

Open hamid80386 opened this issue 6 years ago • 1 comments

I used of this rule to validate recaptcha:

$validate = Validator::make($request->all(), [
            'g-recaptcha-response' => 'required|captcha',
            'name' => 'required',
        ]);

But this way always return fail, even when i checked recaptcha

if ($validate->fails()) {
         var_dump($vlidate); 
         dd('fails');
}

When i checked passes() method is true and when i don't check, passes() return false, but in both sitiuation fails() method is true

hamid80386 avatar Jan 17 '19 15:01 hamid80386

please share your environment

thinhbuzz avatar Jan 17 '19 15:01 thinhbuzz