Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from biscolab/v2
Browse files Browse the repository at this point in the history
v 2.0.0 doc
  • Loading branch information
biscolab authored May 7, 2017
2 parents 15263ea + d8a852a commit e053cb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ChangeLog
All notable changes to this project will be documented in this file.

## [2.0.0] - 2017-05-07
### Added
- htmlScriptTagJsApi() helper and $formId parameter
- htmlFormButton() helper
- htmlFormSnippet() helper
- 'version' in recaptcha.php configuration file

More infomration @ [README](README.md)
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Simple Google ReCaptcha package for Laravel 5

You can install the package via composer:
```sh

composer require biscolab/laravel-recaptcha:^2.0
```
The service **provider** must be registered in `config/app.php`:
Expand All @@ -30,9 +29,7 @@ php artisan vendor:publish --provider="Biscolab\ReCaptcha\ReCaptchaServiceProvid
## Configuration

### Add your API Keys

Open `config/recaptcha.php` configuration file and set `api_site_key`, `api_secret_key` and `version`:

```php
return [
'api_site_key' => 'YOUR_API_SITE_KEY',
Expand All @@ -43,7 +40,6 @@ return [
For more invermation about Site Key and Secret Key please visit [Google RaCaptcha developer documentation](https://developers.google.com/recaptcha/docs/start)
Get more info about ReCAPTCHA version at https://developers.google.com/recaptcha/docs/versions


### Customize error message
Before starting please add validation recaptcha message to `resources/lang/[LANG]/validation.php` file
```php
Expand All @@ -60,7 +56,6 @@ return [
Insert `htmlScriptTagJsApi($formId)` helper before closing `</head>` tag
You can also use `ReCaptcha::htmlScriptTagJsApi($formId)`.
`$formId` is required only if you are using **ReCAPTCHA INVISIBLE**

```blade
<!DOCTYPE html>
<html>
Expand Down Expand Up @@ -91,7 +86,6 @@ You can also use `ReCaptcha::htmlFormButton($buttonInnerHTML)` .
<form>
...
{!! htmlFormButton(/* $buttonInnerHTML - Optional */) !!}
</form>
```

Expand All @@ -109,3 +103,6 @@ Print form errors
```php
dd($v->errors());
```

## Changelog
[Changelog](CHANGELOG.md)

0 comments on commit e053cb9

Please sign in to comment.