michaelyousrie / google-recaptcha
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/michaelyousrie/google-recaptcha
Requires
- ext-curl: *
- ext-json: *
- laravel/framework: *
This package is not auto-updated.
Last update: 2025-10-28 04:58:10 UTC
README
This is a simple package that implements google recaptcha V3 into a laravel application to make it super easy to protect forms against bots and spammers (hopefully).
How to use it?
Simple:
- you install it from composer using:
composer require michaelyousrie/google-recaptcha - Publish the config file using
php artisan vendor:publishand choose the correct number for the service providerMichael\GoogleRecpatcha\GoogleRecaptchaServiceProvider - A new config file will be published to your configuration folder (config/google_recaptcha.php). Add your google recaptcha key and secret credentials there.
- Then go to your form and add the blade directive
@google_recaptcha([FORM-ID])which will be responsible for the front-end side of the integration. - Add the middleware
Michael\GoogleRecaptcha\Middlewares\ProtectedByGoogleRecaptchawhich will be responsible for the back-end side of the integration.