PHP code example of nissicreative / laravel-recaptcha

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

    

nissicreative / laravel-recaptcha example snippets


Nissi\ReCaptcha\ReCaptchaServiceProvider::class,



return [
    'key'           => env('RECAPTCHA_KEY'),
    'secret'        => env('RECAPTCHA_SECRET'),
    'script_url'    => 'https://www.google.com/recaptcha/api.js',
    'verify_url'    => 'https://www.google.com/recaptcha/api/siteverify',
    'error_message' => 'reCAPTCHA validation failed. Please try again.',
    'log_responses' => false,
];

$this->validate($request, [
    'g-recaptcha-response' => 'ecaptcha-response.
bash
php artisan vendor:publish