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

This package is auto-updated.

Last update: 2024-04-06 08:38:58 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',
]);

DEMO

11.png 12.png

https://api.wallet.casa/login