Package Data | |
---|---|
Maintainer Username: | PheRum |
Maintainer Contact: | pherum@mail.ru (PheRum) |
Package Create Date: | 2016-08-14 |
Package Last Update: | 2020-09-13 |
Home Page: | http://www.google.com/recaptcha/ |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 03:03:52 |
Package Statistics | |
---|---|
Total Downloads: | 1,846 |
Monthly Downloads: | 10 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel Recaptcha is a free CAPTCHA service that protect websites from spam and abuse.
Via Composer
composer require pherum/laravel-recaptcha
And then, if using Laravel 5, include the service provider within app/config/app.php
.
'providers' => [
...
PheRum\Recaptcha\RecaptchaServiceProvider::class,
];
And, for convenience, add a facade alias to this same file at the bottom:
'aliases' => [
...
'Recaptcha' => PheRum\Recaptcha\Facades\Recaptcha::class,
];
Laravel Recaptcha supports optional configuration.
To get started, you'll need to publish all vendor assets:
php artisan vendor:publish --provider="PheRum\Recaptcha\RecaptchaServiceProvider"
This will create a config/recaptcha.php
file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.
$this->validate($request, [
'g-recaptcha-response' => 'required|recaptcha',
]);
{!! Recaptcha::render() !!}
{!! Recaptcha::render(['lang' => 'en']) !!}
composer test
If you discover any security related issues, please email pherum@mail.ru instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.