-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64b06ec
commit 8ba6ff2
Showing
5 changed files
with
121 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,100 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Enable/Disable Service | ||
|-------------------------------------------------------------------------- | ||
| Type: bool | ||
| | ||
| This option is used to disable/enable the service | ||
| | ||
| Supported: true, false | ||
| | ||
*/ | ||
'is_service_enabled' => true, | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Host Name | ||
|-------------------------------------------------------------------------- | ||
| Type: string | ||
| Google reCAPTCHA host name, https://www.google.com/recaptcha/admin | ||
| | ||
*/ | ||
'host_name' => 'ryandeng.test', | ||
'secret_key' => '6Lez2HcUAAAAAIvmnukbhNLUAighVP6AuPcOFXT2', | ||
'curl_timeout' => 1, | ||
'curl_verify' => false, | ||
'template' => 'GoogleReCaptcha::googlerecaptcha.googlerecaptcha', | ||
'site_key' => '6Lez2HcUAAAAAJPDe-qVi5H8G5FB049E5mrljqt4', | ||
'options' => [ | ||
'curl_timeout' => 1, | ||
'curl_verify' => 1, | ||
], | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Secret Key | ||
|-------------------------------------------------------------------------- | ||
| Type: string | ||
| Google reCAPTCHA credentials, https://www.google.com/recaptcha/admin | ||
| | ||
*/ | ||
'secret_key' => '', | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site Key | ||
|-------------------------------------------------------------------------- | ||
| Type: string | ||
| Google reCAPTCHA credentials, https://www.google.com/recaptcha/admin | ||
| | ||
*/ | ||
'site_key' => '', | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Template | ||
|-------------------------------------------------------------------------- | ||
| Type: string | ||
| Template path, if your template locate at resources/views/template/test.blade.php | ||
| your value should be template.test | ||
| | ||
*/ | ||
'template' => 'googlerecaptcha.googlerecaptcha', | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Score Comparision | ||
|-------------------------------------------------------------------------- | ||
| Type: bool | ||
| If you enable it, the package will do score comparision from your score_setting | ||
*/ | ||
'is_score_enabled' => true, | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Score Setting | ||
|-------------------------------------------------------------------------- | ||
| Type: array | ||
| Define your score threshold | ||
| action: Google reCAPTCHA required paramater | ||
| id: <input> id | ||
| threshold: score threshold | ||
| is_enabled: true/false, if this is true, the system will do score comparsion against your threshold for the action | ||
*/ | ||
'score_setting' => [ | ||
[ | ||
'action' => 'a', | ||
'id' => 'cccc', | ||
'threshold' => 0.2, | ||
'action' => 'contact_us', | ||
'id' => 'contact_us_id', | ||
'threshold' => 0, | ||
'is_enabled' => false | ||
], | ||
[ | ||
'action' => 'c', | ||
'id' => 'ddd', | ||
'threshold' => 0.1, | ||
'is_enabled' => true | ||
], | ||
] | ||
], | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Options | ||
|-------------------------------------------------------------------------- | ||
| Used for request | ||
| | ||
*/ | ||
'options' => [ | ||
'curl_timeout' => 1, | ||
'curl_verify' => 1, | ||
], | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site Verify Url | ||
|-------------------------------------------------------------------------- | ||
| Type: string | ||
| Google reCAPTCHA API | ||
*/ | ||
'site_verify_url' => 'https://www.google.com/recaptcha/api/siteverify', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters