PHP code example of bkstar123 / laravel-recaptcha

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

    

bkstar123 / laravel-recaptcha example snippets


$request->validate([
    'g-recaptcha-response' => 'e make sure you are not a robot',
    'g-recaptcha-response.

{{ Recaptcha::addClient3Html('recaptcha3') }}

{{ Recaptcha::addClient3Js('<action_name>', 'recaptcha3') }} 

$request->validate([
    'recaptcha3' => 'recaptcha_v3'
], ['recaptcha_v3' => 'You are not a human']);