Skip to content

Commit 1c6d0e0

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 8c6d741 + 88bfab9 commit 1c6d0e0

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Google reCAPTCHA v3 is a new mechanism to verify whether the user is bot or not.
88
## Features
99

1010
- Score Comparision
11-
- Support multiple input field for different <form> tag
11+
- Support multiple input field for different form tag on a single HTML page
1212
- Support custom implementation on config interface
1313
- Support custom implementation on request method interface
1414

@@ -57,36 +57,31 @@ $ php artisan vendor:publish --provider="RyanDeng\GoogleReCaptcha\Providers\Goog
5757

5858
After installation, you should see a googlerecaptcha/googlerecaptchav3.blade file in your views folder and googlerecaptchav3.php in your app/config folder.
5959

60-
If you want to change the default template, please check Advanced Usage.
61-
62-
6360
## Basic Usage
6461
#### Setting up your Google reCAPTCHA details in config file
6562

6663
Please register all details on host_name, site_key, secret_key and site_verify_url.
6764

6865
Specify your Score threshold and action in 'setting', e.g.
6966
``` php
70-
[
67+
'setting' = [
7168
'action' => 'contact_us', // Google reCAPTCHA required paramater
7269
'id' => 'contactus_id', // your HTML input field id
7370
'threshold' => 0.2, // score threshold
7471
'is_enabled' => false // if this is true, the system will do score comparsion against your threshold for the action
7572
]
7673
```
7774
Note: if you want to enable Score Comparision, you also need to enable is_score_enabled to be true.
78-
79-
Remember to turn on the service by enable is_service_enabled to be true.
75+
``` php
76+
'is_score_enabled' = true
77+
```
8078

8179
For more details please check comments in config file.
8280

8381
#### Display reCAPTCHA v3
8482

85-
- Pass your action name in render(...) function
86-
- Each action should have its own mapped id which you have specified in setting file.
87-
8883
``` html
89-
{!! app('captcha')->display($attributes) !!}
84+
{!! app('captcha')->render($$action1,$action2...) !!}
9085
```
9186

9287
Or use Facade
@@ -112,17 +107,17 @@ Example Usage
112107
</form>
113108
```
114109

115-
116-
- You can pass multiple $action in render(...)
110+
- You can pass multiple $action in render(...)function
111+
- Each action should have its own mapped id which you have specified in setting file.
117112
- Please specify your id for the input below:
118113

119114
``` html
120115
<input type="hidden" id="your_id" name="g-recaptcha-response">
121116
```
122-
Note: all values should be registered in googlerecaptchav3 config file in 'setting' section
117+
Note: all values should be registered in googlerecaptchav3 config file in 'setting' section.
123118

124119

125-
#### Validation Class
120+
#### Validation Class (Only support Laravel >= 5.5)
126121

127122
You can use provided Validation object to verify your reCAPTCHA.
128123

0 commit comments

Comments
 (0)