/recaptcha-v3

Laravel reCaptcha v3

Primary LanguagePHP

Google reCaptcha v3 for Laravel 5.6+

Latest Stable Version Total Downloads

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'
    ]);