You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+60-82Lines changed: 60 additions & 82 deletions
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,19 @@ I guarantee that bugs, issues, features and changes will be responded in 48 hour
17
17
18
18
If you want to use v2, please go to: https://github.com/RyanDaDeng/laravel-google-recaptcha-v2
19
19
20
-
I will be super happy if you think this package is good and also star me. ^.^
20
+
Update: Vue component is ready for production usage. Please upgrade package version to ~2.2.0
21
21
22
-
PS: For Vue component, it will be polished in the near future, however, the basic version works fine, feel free to create ticket if you encounter any issues.
22
+
A star would be a nice encouragement. ^.^
23
23
24
24
# Table of Contents
25
-
0.[Configurations](#settings)
26
-
1.[Facade Usage](#facade-usage)
27
-
2.[Blade Usage](#blade-basic-usage)
28
-
3.[Vue Usage](#vue-usage)
29
-
4.[Validation](#validation-class)
30
-
5.[Advanced Usage](#advanced-usage)
31
-
6.[Contributors](#contributors)
25
+
1.[Installation](#installation)
26
+
2.[Configurations](#settings)
27
+
3.[Facade Usage](#facade-usage)
28
+
4.[Blade Usage](#blade-basic-usage)
29
+
5.[Vue Usage](#vue-usage)
30
+
6.[Validation](#validation-class)
31
+
7.[Advanced Usage](#advanced-usage)
32
+
8.[Contributors](#contributors)
32
33
33
34
# DEMO
34
35
@@ -56,13 +57,15 @@ Please check Google site: https://developers.google.com/recaptcha/docs/faq
56
57
57
58
## Features
58
59
60
+
- High Test coverage, safe and easy to use
59
61
- Score Comparision
60
-
- Support invisible, global and inline badge style
62
+
- Support invisible, corner and inline badge style
61
63
- Support multiple reCAPTCHA on the same page for different forms
62
64
- Support multiple actions to be placed on the same page
63
65
- Support custom implementation on config interface
64
66
- Support custom implementation on request method interface
65
-
67
+
- Fully supported Vue component
68
+
- IP skip list supported
66
69
67
70
## Requirement
68
71
@@ -76,13 +79,12 @@ This package requires the following dependencies:
76
79
77
80
- Please ensure that you have read basic information from Google reCAPTCHA v3.
The backend request will receive a value for 'g-recaptcha-response'.
289
+
352
290
Go to /index and click submit button on contact us form and you should see an error message that 'Score does not meet the treshhold' because the threshold >2. You can play around the controller to see all outcomes. Importantly, you need to wait the script to be loaded before clicking the submit button.
353
291
354
-
## Vue Usage <aname="vue-usage" />
292
+
### Badge Display
293
+
294
+
If your settings were not reflected, please run php artisan config:cache to clear cache.
295
+
296
+
Inline
297
+
298
+
1. Go to config file, and set
299
+
```PHP
300
+
[
301
+
...
302
+
'inline' => true
303
+
...
304
+
]
305
+
```
306
+
2. Badge will be displayed as inline format within the form.
307
+
308
+
309
+
Invisible
310
+
311
+
1. Set inline as true as well
312
+
2. Modify your div with style display:none
313
+
3. Refer to Google official site: https://developers.google.com/recaptcha/docs/faq
314
+
, you need to include the following text:
315
+
```HTML
316
+
This site is protected by reCAPTCHA and the Google
317
+
<ahref="https://policies.google.com/privacy">Privacy Policy</a> and
318
+
<ahref="https://policies.google.com/terms">Terms of Service</a> apply.
319
+
```
320
+
321
+
Corner
322
+
323
+
1. Set inline as false
324
+
2. Your badge will be shown in the bottom right side.
325
+
326
+
Custom
327
+
328
+
1. Set inline as true
329
+
2. Do Styling/CSS on its div element
330
+
331
+
332
+
## Vue Usage (Pacakge version >= 2.2.0) <aname="vue-usage" />
355
333
356
334
The package provides a lightweight vue component. You need to publish the vue component before playing around it.
357
335
@@ -367,7 +345,7 @@ The file will be created under js/components/googlerecaptchav3/GoogleReCaptchaV3
367
345
368
346
#### A BIG thanks to [@Fluxlicious](https://github.com/Fluxlicious) who improved the vue component.
369
347
370
-
The Blade way is no longer useful if you use Vue, so we need to manage to assign site key by ourselves. The component supports props below:
348
+
The Blade way is no longer useful if you use Vue. We need to manage to assign site key by ourselves. The component supports props below:
371
349
372
350
Supported: siteKey, id, inline and action, check the original file to see the details.
0 commit comments