Skip to content

xiaohuilam/LuoCaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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