Skip to content

Commit d949d87

Browse files
committed
updated feature
1 parent 719505a commit d949d87

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ Note: if you want to enable Score Comparision, you also need to enable is_score_
101101
'is_score_enabled' = true
102102
```
103103

104+
For score comparision, all actions should be registered in googlerecaptchav3 config file under 'setting' section.
105+
104106
For more details please check comments in config file.
105107

106108
#### Display reCAPTCHA v3
@@ -184,13 +186,6 @@ Custom
184186
2. Do Styling/CSS on its div element
185187

186188

187-
##### Score Comparision
188-
189-
Note: For score comparision, all actions should be registered in googlerecaptchav3 config file under 'setting' section.
190-
191-
You can also customise your own template under googlerecaptchav3 folder.
192-
193-
194189
#### Validation Class (Only support Laravel >= 5.5)
195190

196191
You can use provided Validation object to verify your reCAPTCHA.

resources/views/googlerecaptchav3/template.blade.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,18 @@
22
function onloadCallback() {
33
@foreach($mappers as $action=>$fields)
44
@foreach($fields as $field)
5-
65
let client{{$field}} = grecaptcha.render('{{$field}}', {
76
'sitekey': '{{$publicKey}}',
87
@if($inline===true) 'badge': 'inline', @endif
98
'size': 'invisible'
109
});
11-
1210
grecaptcha.ready(function () {
1311
grecaptcha.execute(client{{$field}}, {
1412
action: '{{$action}}'
1513
});
1614
});
17-
1815
@endforeach
1916
@endforeach
20-
2117
}
2218
</script>
23-
24-
2519
<script src="https://www.google.com/recaptcha/api.js?render=explicit&onload=onloadCallback" defer async></script>

src/Providers/GoogleReCaptchaV3ServiceProvider.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ protected function bootForConsole()
6868
$this->publishes([
6969
__DIR__ . '/../../config/googlerecaptchav3.php' => config_path('googlerecaptchav3.php'),
7070
], 'googlerecaptchav3.config');
71-
72-
// Publishing the views.
73-
$this->publishes([
74-
__DIR__ . '/../../resources/views' => base_path('resources/views'),
75-
], 'googlerecaptchav3.views');
7671
}
7772

7873
/**

0 commit comments

Comments
 (0)