sb89 / recaptcha
Recaptcha for Laravel 4
dev-master
2014-01-06 21:54 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.*
This package is not auto-updated.
Last update: 2024-11-19 03:36:03 UTC
README
Laravel 4 Recaptcha Package
Installation
- Run
composer require sb89/recaptcha
. - If asked for a version, use "dev-master" (without the quotes).
- Add
'Sb89\Recaptcha\RecaptchaServiceProvider'
to the providers array inapp/config/app.php
. - Run
php artisan config:publish sb89/recaptcha
. - Add your Recaptcha Private and Public keys to
app/config/packages/sb89/recaptcha/config.php
. - Add a language entry to
app/lang/en/validation.php
('en' will depend on your language) e.g'recaptcha'=>'Recaptcha is incorrect.'
Usage
Form::recaptcha()
- Add
'recaptcha_response_field' => 'required|recaptcha'
to your validation rules.
Theme
The Recaptcha theme can be specified by using Form::recaptcha(array('theme'=>'clean'))
.
SSL
SSL can be specified by using Form::recaptcha(array('use_ssl'=>true))
.