Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rgillera's avatar

Adding noCAPTCHA in laravel spark

I used this package in adding captcha in my project https://github.com/ARCANEDEV/noCAPTCHA. But even if I supply the right captcha it always prompt "The register captcha field is required.".

Here is my code:

App.js

Spark.forms.register = { registerCaptcha: '' };

test.blade.php

$captcha = new Arcanedev\NoCaptcha\NoCaptcha(env('NOCAPTCHA_SECRET'), env('NOCAPTCHA_SITEKEY')); echo $captcha->display('registerCaptcha');

@{{ registerForm.errors.get('registerCaptcha') }}

echo $captcha->scriptWithCallback(['registerCaptcha']);

0 likes
2 replies
ejdelmonico's avatar

What are you using the captcha for? The reason I ask is there are very few use cases in a Spark project. It comes with contact form etc. Stripe signup verifies Credit Cards. The only issue is the free plans, but you can always use a verification email by hooking into the Spark events.

Please or to participate in this conversation.