PHP code example of daikazu / laravel-recaptcha

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

    

daikazu / laravel-recaptcha example snippets


 {!! ReCaptcha::renderJs() !!}

 {!! ReCaptcha::renderJs('fr', true, 'recaptchaCallback') !!}

{!! ReCaptcha::displayWidget() !!}

{!! ReCaptcha::displayWidget(['data-theme' => 'dark']) !!}

{!! ReCaptcha::displayButton( 'Button Text', ['data-callback' => 'onFormSubmit', 'class' => 'button is-info']) !!}

$validate = Validator::make(Input::all(), [
	'g-recaptcha-response' => '

@if ($errors->has('g-recaptcha-response'))
    <span class="help-block">
        <strong>{{ $errors->first('g-recaptcha-response') }}</strong>
    </span>
@endif
ssh
php artisan vendor:publish --provider="Daikazu\LaravelRecaptcha\ReCaptchaServiceProvider"