Skip to content

Commit 653ef28

Browse files
authored
Update README.md
1 parent a6d32e6 commit 653ef28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Example Usage
157157

158158
## Sample Use Case
159159

160-
Register your action in config:
160+
Register your action in config, also enable score and set up your own site key and secret key:
161161
``` php
162162
'setting' => [
163163
[
@@ -170,7 +170,7 @@ Register your action in config:
170170

171171
Register two routes in web.php
172172
``` php
173-
Route::get('/send', 'ReCaptchaController@index');
173+
Route::get('/index', 'ReCaptchaController@index');
174174
Route::post('/verify', 'ReCaptchaController@verify');
175175
```
176176

@@ -180,7 +180,7 @@ Create two functions in controller:
180180
{
181181
dd(GoogleReCaptchaV3::verifyResponse($request->input('g-recaptcha-response'))->getMessage());
182182
}
183-
public function send(Request $request)
183+
public function index(Request $request)
184184
{
185185
return view('index');
186186
}
@@ -198,7 +198,7 @@ Create your form:
198198
</form>
199199
```
200200

201-
Submit the form and you should see an error message that Score does not meet the treshhold as we set the threshold >2. You can play around the controller to see all outcomes. Importantly, you need to wait the script to load and render the input before clicking the submit button.
201+
Go to /index and click submit button and you should see an error message that Score does not meet the treshhold as we set the threshold >2. You can play around the controller to see all outcomes. Importantly, you need to wait the script to load and render the input before clicking the submit button.
202202

203203
## Advanced Usage
204204

0 commit comments

Comments
 (0)