xiaohuilam / luo-captcha
There is no license information available for the latest version (v1.0) of this package.
v1.0
2017-09-06 09:56 UTC
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^6.3
- laravelcollective/html: ~5.4
Requires (Dev)
- arcanedev/laravel-html: ~5.0
- phpunit/phpcov: ~2.0|~3.0
- phpunit/phpunit: ~4.0|~5.0
This package is auto-updated.
Last update: 2024-11-06 09:47:26 UTC
README
The ultimate captcha for chinese end users, luosimao. This package brings you a fast method to install the captcha function into your project.
HOW TO GET LUOSIMAO CAPTCHA
https://luosimao.com/service/captcha
INSTALL
composer require xiaohuilam/luo-captcha
vim .env
#NOCAPTCHA_SITEKEY={site key}
#NOCAPTCHA_SECRET={api key}
vim config/app.php
#add bellow into providers
Luosimao\Captcha\LuoCaptchaServiceProvider::class,
#add bellow into aliases:
'Captcha' => Luosimao\Captcha\LuoCaptcha::class,
CODE
add this into your form
{!! Form::captcha() !!}
and add this script into your script
{!! Captcha::script() !!}
add validator
$this->validate($request, [
'luotest_response' => 'required|captcha',
]);