ptuchik / recaptcha-v3
Google's reCaptcha v3 Laravel validator
Installs: 1 540
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Requires
- google/recaptcha: ^1.2
This package is auto-updated.
Last update: 2024-12-14 04:34:20 UTC
README
Installation
To install, simply add it
to your composer.json
file:
{ "require": { "ptuchik/recaptcha-v3": "~1.0" } }
And run composer to update your dependencies:
composer update
Or you can simply run
composer require ptuchik/recaptcha-v3
Publish configuration file to your config
folder with command:
php artisan vendor:publish --provider="Ptuchik\Recaptcha\RecaptchaServiceProvider" --tag=config
Usage
Use as regular validation rule "recaptcha:{ACTION}" like:
Validator::make($request->all(), [ 'g-recaptcha-response' => 'required|recaptcha:register' ]);