PHP code example of spaanproductions / laravel-google-recaptcha-enterprise

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

    

spaanproductions / laravel-google-recaptcha-enterprise example snippets


use SpaanProductions\LaravelGoogleRecaptchaEnterprise\Rules\GoogleRecaptchaRule;

request()->validate([
    'g-recaptcha-response' => ['
bash
php artisan vendor:publish --tag="google-recaptcha-enterprise-config"
bash
php artisan vendor:publish --tag="google-recaptcha-enterprise-views"