diff --git a/README.md b/README.md index 5d37954..320d53c 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,10 @@ Simple Google ReCaptcha package for Laravel 5 ## Installation You can install the package via composer: - ```sh composer require biscolab/laravel-recaptcha ``` - The service **provider** must be registered in `config/app.php`: - ```php 'providers' => [ ... @@ -33,19 +30,16 @@ php artisan vendor:publish --provider="Biscolab\ReCaptcha\ReCaptchaServiceProvid ### Add your API Keys Open `config/recaptcha.php` configuration file and set `api_site_key` and `api_secret_key`: - ```php return [ 'api_site_key' => 'YOUR_API_SITE_KEY', 'api_secret_key' => 'YOUR_API_SECRET_KEY', ]; ``` - For more invermation about Site Key and Secret Key please visit [Google RaCaptcha developer documentation](https://developers.google.com/recaptcha/docs/start) ### Customize error message Before starting please add validation recaptcha message to `resources/lang/[LANG]/validation.php` file - ```php return [ ... @@ -58,7 +52,6 @@ return [ ### Embed in Blade Insert `{!!ReCaptcha::htmlScriptTagJsApi()!!}` before closing `` tag - ```blade @@ -69,7 +62,6 @@ Insert `{!!ReCaptcha::htmlScriptTagJsApi()!!}` before closing `` tag ``` After you have to insert `{!!ReCaptcha::htmlFormSnippet()!!}` inside the form where you want to use the field `g-recaptcha-response` - ```blade