Spark Registration form & Recaptcha

Posted 2 years ago by mostlikelyarea

I'm struggling a bit with integrating Recaptcha and Spark on the registration page. I am attempting to use the Validator for Laravel 5.

I think my hold up is being able to correctly integrate the recaptcha box in with the existing Vue.js form. Any suggestions?

I've added 'g-recaptcha-response' => 'required|recaptcha' to my Spark::validateUsersWith call inside SparkServiceProvider.php (similar to adding a custom field).

I've also added 'g-recaptcha-response': '' within Spark.forms.register in app.js.

No joy... Looking for any tips you might have.

Funny - the recaptcha box is taunting me as I create this new post ;)

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.