ptuchik/recaptcha-v3

Google's reCaptcha v3 Laravel validator

1.0.3 2018-11-04 00:40 UTC

This package is auto-updated.

Last update: 2024-11-14 04:16:30 UTC


README

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