New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

alex-oliveira/ao-recaptcha

Using Google ReCaptcha with Laravel 5.1
28
Install
composer require alex-oliveira/ao-recaptcha
Latest Version:1.0.1
PHP:>=5.5.9
Laravel:5
License:MIT
Last Updated:Feb 2, 2017
Links: GitHub  ·  Packagist
Maintainer: alex-oliveira

Ao-ReCaptcha

Using Google ReCaptcha with Laravel 5.1

1) Installation

Run

$ composer require alex-oliveira/ao-recaptcha

Add in your ".env"

RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET_KEY=

Add in your "config/app.php"

'providers' => [
    /*
     * Vendors Service Providers...
     */
    AoReCaptcha\ServiceProvider::class,
]

Run

$ php artisan vendor:publish

2) Using

Add before </head>

{!! recaptcha()->script() !!}

Add between <form> and </form>

{!! recaptcha()->input() !!}

Add in your controller

try {
    recaptcha()->check(request()->get('g-recaptcha-response'));
} catch (\Exception $e) {
    
}

Related Packages

noylecorp/laravel-recaptcha

Laravel package for Google's ReCAPTCHA service

11,105 3
nissicreative/laravel-recaptcha

A simple reCAPTCHA implementation for your Laravel project.

479 2
hedii/laravel-recaptcha

Google reCAPTCHA v3 for Laravel

55,486 4
cohensive/recaptcha

Laravel 4 bridge for recaptcha/php5

138 0
alex-oliveira/ao-alert

Resources for Alerts with Laravel 5.* + Bootstrap 3

71 0

Version History

Version Released PHP Laravel License
1.0.1 >=5.5.9 5.1.* MIT
1.0.0 >=5.5.9 5.1.* MIT