sb89 / recaptcha
Recaptcha for Laravel 4
Installs: 951
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/sb89/recaptcha
Requires
- php: >=5.3.0
- illuminate/support: 4.*
This package is not auto-updated.
Last update: 2024-12-17 04:11:42 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)).