ARCANEDEV / noCAPTCHA

:passport_control: Helper for Google's new noCAPTCHA (reCAPTCHA v2 & v3)
MIT License
358 stars 56 forks source link

How do I get the socre? (v3) #97

Closed ebelendez closed 4 years ago

ebelendez commented 4 years ago

Description: The value of g-recaptcha-response is just a token..

Steps To Reproduce: Always

Thanks

ebelendez commented 4 years ago

Never mind, I found it!

public function post_userRegister(Request $request){
        $captcha = new NoCaptchaV3(env('NOCAPTCHA_SECRET'), env('NOCAPTCHA_SITEKEY'));
        $response = $captcha->verify($request->get('g-recaptcha-response'));
        dd(
            $response->toArray()
        );
    }  

But you should really improve the documentation Thanks any way!