2017 © Pedro Peláez
 

library laravel-recaptcha

Google reCAPTCHA Validator Package for Laravel Framework

image

vinkas/laravel-recaptcha

Google reCAPTCHA Validator Package for Laravel Framework

  • Thursday, August 11, 2016
  • by vinothkannans
  • Repository
  • 1 Watchers
  • 1 Stars
  • 335 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Laravel Recaptcha Validator

Latest Stable Version Latest Unstable Version License, (*1)

Google reCAPTCHA Validator Package for Laravel Framework

Installation

Via Composer Require

You may install by running the composer require command in your terminal:, (*2)

composer require vinkas/laravel-recaptcha

Configuration

Add Service Provider to your config/app.php file, (*3)

Vinkas\Laravel\Recaptcha\ServiceProvider::class,

And run php artisan command to publish package config file, (*4)

php artisan vendor:publish --provider="Vinkas\Laravel\Recaptcha\ServiceProvider"

Add your recaptcha site key and secret in .env file, (*5)

RECAPTCHA_SITE_KEY=__________
RECAPTCHA_SECRET=__________

Add recaptcha custom error message in resources\lang\en\validation.php file, (*6)

'recaptcha'            => 'The capcha verfication failed. Please try again.',

Add recaptcha field in your form's blade view, (*7)



@if ($errors->has('g-recaptcha-response')) {{ $errors->first('g-recaptcha-response') }} @endif

Add Validator calling function in your app controller file, (*8)

Validator::make($data, [
  'g-recaptcha-response' => 'required|recaptcha',
]);

It's done! Now your form spam protected by Google reCAPTCHA!!!, (*9)

Dependencies

Google Recaptcha, (*10)

The Versions

11/08 2016

dev-master

9999999-dev

Google reCAPTCHA Validator Package for Laravel Framework

  Sources   Download

MIT

The Requires

 

11/07 2016

v1.0.1

1.0.1.0

Google reCAPTCHA Validator Package for Laravel Framework

  Sources   Download

MIT

The Requires

 

11/07 2016

v1.0.0

1.0.0.0

Google reCAPTCHA Validator Package for Laravel Framework

  Sources   Download

MIT

The Requires