|
13 | 13 | [![Build][ico-build]][link-build]
|
14 | 14 | [![StyleCI][ico-styleci]][link-styleci]
|
15 | 15 |
|
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. |
18 | 18 |
|
19 | 19 | I guarantee that bugs, issues, features and changes will be responded in 48 hours.
|
20 | 20 |
|
@@ -87,7 +87,7 @@ This package requires the following dependencies:
|
87 | 87 | Via Composer
|
88 | 88 |
|
89 | 89 | ``` 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 |
91 | 91 | ```
|
92 | 92 |
|
93 | 93 | 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
|
225 | 225 |
|
226 | 226 | #### Add Google API script
|
227 | 227 |
|
228 |
| -Include the API script in your layout or global page. |
| 228 | +Include the API script at the bottom of your layout page |
229 | 229 |
|
230 | 230 | ``` html
|
231 | 231 | {!! GoogleReCaptchaV3::init() !!}
|
232 | 232 | ```
|
233 | 233 |
|
234 |
| -#### Blade for Background (optional) |
| 234 | +#### Running script on every page (optional) |
235 | 235 |
|
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: |
237 | 237 |
|
238 | 238 | ``` php
|
239 | 239 | ...
|
240 | 240 | 'background_badge_display' => true, // if false, the badge will be invisible, if true the badge shows at bottom right.
|
241 | 241 | 'background_mode' => false, // if true, the script will run on every page (ensure that GoogleReCaptchaV3::init() is placed on layout or homepage)
|
242 | 242 | ...
|
243 | 243 | ```
|
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 |
246 | 247 |
|
247 | 248 | There are three methods to populate the reCAPTCHA within the form.
|
248 | 249 |
|
249 |
| -- render() and renderOne() can be placed in anywhere. |
| 250 | +- render() and renderOne() can be placed in anywhere but before init() |
250 | 251 | - renderField() needs always to be placed within your form.
|
251 | 252 |
|
252 | 253 | Method one - render():
|
|
0 commit comments