PHP code example of fruitcakestudio / laravel-recaptcha
1. Go to this page and download the library: Download fruitcakestudio/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/ */
fruitcakestudio / laravel-recaptcha example snippets
// Using the IoC container
$captcha = App::make('recaptcha');
$captcha->getScript();
// Using the Facade
ReCaptcha::verifyRequest();
$validator = Validator::make(Input::all(), array(
'g-recaptcha-response' => '
php artisan config:publish fruitcakestudio/laravel-recaptcha
'ReCaptcha' => 'FruitcakeStudio\ReCaptcha\Support\Laravel\Facade',