Skip to content

Commit f317f39

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents bf7635f + cb69193 commit f317f39

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
[![Build][ico-build]][link-build]
1414
[![StyleCI][ico-styleci]][link-styleci]
1515

16-
### Update: Vue component is production ready. Please upgrade package version : ~2.2.6
17-
### Update: if you are using version lower than 2.2.8, please upgrade and publish config file again. There is a few major improvments on Blade usage, please read instruction.
16+
### Update: Vue component is production ready. Please upgrade package version : ~2.2.10
17+
### Update: if you are using version lower than 2.2.10, please upgrade and publish config file again. There are a few major improvments on Blade usage, please read instruction.
1818

1919
I guarantee that bugs, issues, features and changes will be responded in 48 hours.
2020

@@ -87,7 +87,7 @@ This package requires the following dependencies:
8787
Via Composer
8888

8989
``` sh
90-
$ composer require timehunter/laravel-google-recaptcha-v3 "~2.2.6" -vvv
90+
$ composer require timehunter/laravel-google-recaptcha-v3 "~2.2.10" -vvv
9191
```
9292

9393
If your Laravel framework version <= 5.4, please register the service provider under your config file: /config/app.php, otherwise please skip it.
@@ -225,28 +225,29 @@ If you manually assign a value to setScore($score), the code will fully skip you
225225

226226
#### Add Google API script
227227

228-
Include the API script in your layout or global page.
228+
Include the API script at the bottom of your layout page
229229

230230
``` html
231231
{!! GoogleReCaptchaV3::init() !!}
232232
```
233233

234-
#### Blade for Background (optional)
234+
#### Running script on every page (optional)
235235

236-
It's recommended to include reCAPTCHA v3 on every page which can help you get the most context about interactions for analytics.
236+
It's recommended to include reCAPTCHA v3 on every page which can help you get the most context about interactions for analytics. You just need to enable the config:
237237

238238
``` php
239239
...
240240
'background_badge_display' => true, // if false, the badge will be invisible, if true the badge shows at bottom right.
241241
'background_mode' => false, // if true, the script will run on every page (ensure that GoogleReCaptchaV3::init() is placed on layout or homepage)
242242
...
243243
```
244-
245-
#### Blade for Form & Action
244+
If the page has not detected any Action or duplicate google script, the background mode will be enabled.
245+
246+
#### Form & Action
246247

247248
There are three methods to populate the reCAPTCHA within the form.
248249

249-
- render() and renderOne() can be placed in anywhere.
250+
- render() and renderOne() can be placed in anywhere but before init()
250251
- renderField() needs always to be placed within your form.
251252

252253
Method one - render():

0 commit comments

Comments
 (0)