PHP code example of pherum / laravel-recaptcha

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

    

pherum / laravel-recaptcha example snippets


'providers' => [
    ...
    PheRum\Recaptcha\RecaptchaServiceProvider::class,
];

'aliases' => [
    ...
    'Recaptcha' => PheRum\Recaptcha\Facades\Recaptcha::class,
];

$this->validate($request, [
    'g-recaptcha-response' => '

{!! Recaptcha::render() !!}

{!! Recaptcha::render(['lang' => 'en']) !!}
bash
php artisan vendor:publish --provider="PheRum\Recaptcha\RecaptchaServiceProvider"