LARAVEL-LUOSIMAO
The ultimate captcha for chinese end users, luosimao. This package brings you a fast method to install the captcha function into your project., (*1)
HOW TO GET LUOSIMAO CAPTCHA
https://luosimao.com/service/captcha, (*2)
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, (*3)
{!! Form::captcha() !!}
and add this script into your script, (*4)
{!! Captcha::script() !!}
add validator, (*5)
$this->validate($request, [
'luotest_response' => 'required|captcha',
]);
DEMO
, (*6)
https://api.wallet.casa/login, (*7)