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
After installation, you should see a googlerecaptcha/googlerecaptchav3.blade file in your views folder and googlerecaptchav3.php in your app/config folder.
59
59
60
-
If you want to change the default template, please check Advanced Usage.
61
-
62
-
63
60
## Basic Usage
64
61
#### Setting up your Google reCAPTCHA details in config file
65
62
66
63
Please register all details on host_name, site_key, secret_key and site_verify_url.
67
64
68
65
Specify your Score threshold and action in 'setting', e.g.
69
66
```php
70
-
[
67
+
'setting' = [
71
68
'action' => 'contact_us', // Google reCAPTCHA required paramater
72
69
'id' => 'contactus_id', // your HTML input field id
73
70
'threshold' => 0.2, // score threshold
74
71
'is_enabled' => false // if this is true, the system will do score comparsion against your threshold for the action
75
72
]
76
73
```
77
74
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
+
```
80
78
81
79
For more details please check comments in config file.
82
80
83
81
#### Display reCAPTCHA v3
84
82
85
-
- Pass your action name in render(...) function
86
-
- Each action should have its own mapped id which you have specified in setting file.
0 commit comments