2017 © Pedro Peláez
 

library recaptcha

ReCaptcha For Laravel. This repo seperated script and dom which is very helpful for lazyload.

image

erictt/recaptcha

ReCaptcha For Laravel. This repo seperated script and dom which is very helpful for lazyload.

  • Friday, May 19, 2017
  • by erictt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 118 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

reCAPTCHA

  • Forked from anhskohbo/no-captcha
  • This repo's purpose is to seperate script and dom which is very useful in vuejs.
  • Still working on it.

Installation

Add the following line to the require section of composer.json:, (*1)

{
    "require": {
        "erictt/recaptcha": "*"
    }
}

Setup

  1. Add ServiceProvider to the providers array in app/config/app.php.
Erictt\Recaptcha\RecaptchaServiceProvider::class,

and the following to aliases:, (*2)

'Recaptcha' => Erictt\Recaptcha\Facades\Recaptcha::class,
  1. Run php artisan vendor:publish --provider="Erictt\Recaptcha\RecaptchaServiceProvider"., (*3)

  2. In /config/recaptcha.php, enter your reCAPTCHA sitekey and secret keys., (*4)

Usage

Display reCAPTCHA
{!! Recaptcha->display(['dom', 'script']); !!}
  • or seperately
{!! Recaptcha->display(['dom']); !!}
{!! Recaptcha->display(['script']); !!}
  • Complete HTML codes:


{!! Recaptcha::display(['dom']) !!} @if ($errors->has('g-recaptcha-response')) {{ $errors->first('g-recaptcha-response') }} @endif
Validation

Add 'g-recaptcha-response' => 'recaptcha' to rules array., (*5)

PS: I don't think we need require rule for this., (*6)


$validate = Validator::make(Input::all(), [ 'g-recaptcha-response' => 'recaptcha' ]);

The Versions

19/05 2017

dev-master

9999999-dev

ReCaptcha For Laravel. This repo seperated script and dom which is very helpful for lazyload.

  Sources   Download

MIT

The Requires

 

by eric yang

laravel laravel5 recaptcha vuejs

19/05 2017

0.0.5

0.0.5.0

ReCaptcha For Laravel. This repo seperated script and dom which is very helpful for lazyload.

  Sources   Download

MIT

The Requires

 

by eric yang

laravel laravel5 recaptcha vuejs

16/05 2017

0.0.4

0.0.4.0

ReCaptcha For Laravel. This repo seperated script and dom which is very helpful for lazyload.

  Sources   Download

MIT

The Requires

 

by eric yang

laravel laravel5 recaptcha vuejs