PHP code example of 233sec / laravel-recaptchav3

1. Go to this page and download the library: Download 233sec/laravel-recaptchav3 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/ */

    

233sec / laravel-recaptchav3 example snippets


{!! RecaptchaV3::initJs() !!}

$validate = Validator::make(Input::all(), [
	'g-recaptcha-response' => '

//  RecaptchaV3::verify($token, $action)
$score = RecaptchaV3::verify($request->get('g-recaptcha-response'), 'register')
if($score > 0.7) {
    // go
} elseif($score > 0.3) {
    // 

RecaptchaV3::shouldReceive('verify')
    ->once()
    ->andReturn(1.0);


php artisan vendor:publish --provider="Lunaweb\RecaptchaV3\RecaptchaV3ServiceProvider"