In this tutorial we're going to learn how we can add Google reCAPTCHA to your forms in Laravel. For this functionality we're going to use the free Google service https://www.google.com/recaptcha, this service helps guard against spam bots from submitting your form with invalid spam data. https://paulund.co.uk/how-to-add-google-recaptcha-to-laravel#recaptchaFirst you need to sign up to the https://www.google.com/recaptcha service and register your site for one of the three types V2, invisible or Android.

To valid the request we're going to create a Laravel custom form validation class.

That it now your form requests can be verified by using the reCAPTCHA service.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners