@@ -73,25 +73,25 @@ If your Laravel framework version <= 5.4, please register the service provider i
73
73
``` php
74
74
'providers'=[
75
75
....,
76
- TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchav2ServiceProvider ::class
76
+ TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchaV2ServiceProvider ::class
77
77
]
78
78
```
79
79
80
80
And also
81
81
``` php
82
82
'aliases'=[
83
83
....,
84
- 'GoogleReCaptchav2 '=> TimeHunter\LaravelGoogleReCaptchaV2\Facades\GoogleReCaptchav2 ::class
84
+ 'GoogleReCaptchaV2 '=> TimeHunter\LaravelGoogleReCaptchaV2\Facades\GoogleReCaptchaV2 ::class
85
85
]
86
86
```
87
87
88
88
89
89
If your Laravel framework version is >= 5.5, just run the following command to publish views and config.
90
90
``` sh
91
- $ php artisan vendor:publish --provider=" TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchav2ServiceProvider "
91
+ $ php artisan vendor:publish --provider=" TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchaV2ServiceProvider "
92
92
```
93
93
94
- After installation, you should see a googlerecaptchav2 /template.blade under views folder and googlerecaptchav2 .php in your app/config folder.
94
+ After installation, you should see a googlerecaptchaV2 /template.blade under views folder and googlerecaptchaV2 .php in your app/config folder.
95
95
96
96
## Basic Usage
97
97
#### Setting up your Google reCAPTCHA details in config file
@@ -113,8 +113,8 @@ Include div with an ID inside your form, e.g.
113
113
Include Template script in your bottom/header of your page, params should follow 'ID'=>'Action', e.g.
114
114
115
115
``` PHP
116
- {!! GoogleReCaptchav2 ::render('form_id_1','form_id_2') !!}
117
- {!! GoogleReCaptchav2 ::render('form_id_1') !!}
116
+ {!! GoogleReCaptchaV2 ::render('form_id_1','form_id_2') !!}
117
+ {!! GoogleReCaptchaV2 ::render('form_id_1') !!}
118
118
```
119
119
120
120
##### Example Usage
@@ -126,7 +126,7 @@ Include Template script in your bottom/header of your page, params should follow
126
126
<input type =" submit" value =" submit" >
127
127
</form >
128
128
129
- {!! GoogleReCaptchav2 ::render('contact_us_id'=>'contact_us') !!}
129
+ {!! GoogleReCaptchaV2 ::render('contact_us_id'=>'contact_us') !!}
130
130
131
131
```
132
132
@@ -202,19 +202,19 @@ You can also directly use registered service by calling the following method.
202
202
- verifyResponse() which accepts the token value from your form. This return Google reCAPTCHA Response object.
203
203
204
204
``` php
205
- GoogleReCaptchav2 ::setAction($action)->verifyResponse($value, $ip=null);
205
+ GoogleReCaptchaV2 ::setAction($action)->verifyResponse($value, $ip=null);
206
206
```
207
207
208
208
Example Usage
209
209
210
210
``` php
211
- GoogleReCaptchav2 ::verifyResponse($value,$ip)->getMessage();
212
- GoogleReCaptchav2 ::verifyResponse($value)->isSuccess();
213
- GoogleReCaptchav2 ::verifyResponse($value)->toArray();
211
+ GoogleReCaptchaV2 ::verifyResponse($value,$ip)->getMessage();
212
+ GoogleReCaptchaV2 ::verifyResponse($value)->isSuccess();
213
+ GoogleReCaptchaV2 ::verifyResponse($value)->toArray();
214
214
```
215
215
216
216
``` php
217
- GoogleReCaptchav2 ::verifyResponse($request->input('g-recaptcha-response'))->getMessage()
217
+ GoogleReCaptchaV2 ::verifyResponse($request->input('g-recaptcha-response'))->getMessage()
218
218
```
219
219
220
220
## Sample Use Case
@@ -254,15 +254,15 @@ Route::post('/verify', 'ReCaptchaController@verify');
254
254
<input type =" submit" value =" submit" >
255
255
</form >
256
256
257
- {!! GoogleReCaptchav2 ::render('contact_us_id') !!}
257
+ {!! GoogleReCaptchaV2 ::render('contact_us_id') !!}
258
258
```
259
259
260
260
261
261
## Advanced Usage
262
262
263
263
#### Custom implementation on Template
264
264
265
- After publish views, a blade file created under googlerecaptchav2 , you can customise it and change template value in config file, e.g. if your template is saved in resources/views/test/template, you should put values as below:
265
+ After publish views, a blade file created under googlerecaptchaV2 , you can customise it and change template value in config file, e.g. if your template is saved in resources/views/test/template, you should put values as below:
266
266
``` PHP
267
267
[
268
268
...
0 commit comments