albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
603 stars 162 forks source link

I don't understand the installation guide #42

Closed frenchqwerty closed 7 years ago

frenchqwerty commented 7 years ago

Validation

Add 'g-recaptcha-response' => 'required|captcha' to rules array.


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

Where do I add this on my laravel project ?

Thank you

albertcht commented 7 years ago

hi @frenchqwerty , there are many ways to use validator in Laravel, please see https://laravel.com/docs/5.5/validation