PHPackages                             buzz/laravel-google-captcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. buzz/laravel-google-captcha

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

buzz/laravel-google-captcha
===========================

Google captcha for Laravel

v2.3.8(1mo ago)2071.1M↓10.4%312MITPHPPHP &gt;=5.4.0

Since Aug 4Pushed 1mo ago7 watchersCompare

[ Source](https://github.com/thinhbuzz/laravel-google-captcha)[ Packagist](https://packagist.org/packages/buzz/laravel-google-captcha)[ Docs](https://github.com/thinhbuzz/laravel-google-captcha)[ RSS](/packages/buzz-laravel-google-captcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (26)Used By (2)

Google captcha for Laravel
==========================

[](#google-captcha-for-laravel)

> Support multiple captcha on page

[![Google captcha for Laravel](https://camo.githubusercontent.com/b4f602af317614a0b04f8dd9cb639f9576005952e45b3bc9bb73fe31e01ea2eb/687474703a2f2f692e696d6775722e636f6d2f6148424f7141532e676966)](https://camo.githubusercontent.com/b4f602af317614a0b04f8dd9cb639f9576005952e45b3bc9bb73fe31e01ea2eb/687474703a2f2f692e696d6775722e636f6d2f6148424f7141532e676966)

> Inspired by [anhskohbo/no-captcha](https://github.com/anhskohbo/no-captcha) and base on [google captcha sdk](https://github.com/google/recaptcha).

Features
--------

[](#features)

- Support Laravel 5/6/7/8/9/10/11/12/13
- Multiple captcha on page
- Reset captcha
- Auto discover service provider
- Custom request method
- Using difference key
- Dynamic options on runtime

Installation
------------

[](#installation)

Add the following line to the `require` section of `composer.json`:

```
{
    "require": {
        "buzz/laravel-google-captcha": "2.*"
    }
}
```

OR

Require this package with composer:

```
composer require buzz/laravel-google-captcha

```

Update your packages with `composer update` or install with `composer install`.

Setup
-----

[](#setup)

> Has support auto discover for Laravel &gt;=5.5

Add ServiceProvider to the `providers` array in `config/app.php`.

```
'Buzz\LaravelGoogleCaptcha\CaptchaServiceProvider',

```

Publish Config
--------------

[](#publish-config)

```
php artisan vendor:publish --provider="Buzz\LaravelGoogleCaptcha\CaptchaServiceProvider"

```

### Custom ReCaptcha request (minimum version 2.1.7)

[](#custom-recaptcha-request-minimum-version-217)

Edit `request_method` in the `config/captcha.php` config

file `config/captcha.php`

```
