PHP code example of xiaohuilam / luo-captcha

1. Go to this page and download the library: Download xiaohuilam/luo-captcha library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xiaohuilam / luo-captcha example snippets


vim config/app.php
#add bellow into providers
Luosimao\Captcha\LuoCaptchaServiceProvider::class,

#add bellow into aliases:
'Captcha'     => Luosimao\Captcha\LuoCaptcha::class,

$this->validate($request, [
    'luotest_response' => '