how you implement the g-captcha
are you using any plugin?
check your JS file is include correctly?
this one g-captcha is very usefully
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am am working with Google reCaptcha in a Registration page using Laravel 8. My View (blade) page code is like below.
<div class="form-group mt-5">
<div class="g-recaptcha" data-sitekey="sitekeytext"></div>
</div>
@error('g-recaptcha-response')
<div class="alert alert-danger mt-1 mb-1">{{ $message }}</div>
@enderror
My Controller code is like below,
$request->validate([
'g-recaptcha-response' => 'required',
],
[
'g-recaptcha-response.required' => 'Captcha is Required',
]);
After submitting Form I am getting Captcha is Required validation message.
Same code is working perfectly on Login page.
Please or to participate in this conversation.