PHP code example of homedoctor-es / recaptcha

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

    

homedoctor-es / recaptcha example snippets


   Kuttumiah\Recaptcha\RecaptchaServiceProvider::class,
   

   'Recaptcha' => Kuttumiah\Recaptcha\Facades\Recaptcha::class,
   

       'recaptcha' => 'The :attribute field is not correct.',
   

   Greggilbert\Recaptcha\RecaptchaServiceProvider::class,
   

   'Recaptcha' => Greggilbert\Recaptcha\Facades\Recaptcha::class,
   

    $rules = [
        // ...
        'g-recaptcha-response' => '

    $rules = [
        // ...
        'recaptcha_response_field' => '

    // ...
    'options' => [
		'lang' => 'ja',
	],

echo Recaptcha::render([ 'lang' => 'fr' ]);

    'options' => [
        'lang' => 'fr',
	],

    // ...
    'template' => 'customCaptcha',

echo Recaptcha::render([ 'template' => 'customCaptcha' ]);
bash
$ php artisan config:cache