Skip to content

Instantly share code, notes, and snippets.

View adeguntoro's full-sized avatar

Ade Guntoro adeguntoro

View GitHub Profile
@geosem42
geosem42 / recaptcha-v3.md
Last active November 6, 2026 14:56
Integrating Google ReCaptcha v3 in Laravel Jetstream with Inertia

This gist will guide you through the process of integrating Google ReCaptcha v3 into a Laravel Jetstream w/ Inertia application.

API Keys and Configuration

First, obtain your ReCaptcha v3 API keys from the Google ReCaptcha Admin Console. Add these keys to your .env file:

RECAPTCHA_SITE_KEY=your_site_key_here
RECAPTCHA_SECRET_KEY=your_secret_key_here

Next, update your config/services.php file to include the ReCaptcha configuration. This configuration allows us to access our ReCaptcha keys throughout the application using Laravel's config helper. It keeps our sensitive keys secure by referencing environment variables.