PHP code example of orh / laravel-geetest-button

1. Go to this page and download the library: Download orh/laravel-geetest-button 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/ */

    

orh / laravel-geetest-button example snippets


$this->validate($request, [
    ...
    'captcha' => 'captcha',
]);

$this->validate($request, [
    ...
    'captcha' => 'captcha',
]);

$this->validate($request, [
    ...
    'captcha' => 'test',
]);
Shell
php artisan vendor:publish --provider="Ouronghuang\GeetestButton\ServiceProvider"