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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners