laravel-google-captcha
laravel-google-captcha copied to clipboard
fails() method are always true
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
please share your environment