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
Use as regular validation rule "recaptcha:{ACTION}" like:
Validator::make($request->all(), [
'g-recaptcha-response' => 'required|recaptcha:register'
]);