Skip to content

Commit 29eddab

Browse files
committed
updated readme
1 parent 1b4a6e9 commit 29eddab

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

readme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,25 @@ If your Laravel framework version <= 5.4, please register the service provider i
7373
``` php
7474
'providers'=[
7575
....,
76-
TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchav2ServiceProvider::class
76+
TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchaV2ServiceProvider::class
7777
]
7878
```
7979

8080
And also
8181
``` php
8282
'aliases'=[
8383
....,
84-
'GoogleReCaptchav2'=> TimeHunter\LaravelGoogleReCaptchaV2\Facades\GoogleReCaptchav2::class
84+
'GoogleReCaptchaV2'=> TimeHunter\LaravelGoogleReCaptchaV2\Facades\GoogleReCaptchaV2::class
8585
]
8686
```
8787

8888

8989
If your Laravel framework version is >= 5.5, just run the following command to publish views and config.
9090
```sh
91-
$ php artisan vendor:publish --provider="TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchav2ServiceProvider"
91+
$ php artisan vendor:publish --provider="TimeHunter\LaravelGoogleReCaptchaV2\Providers\GoogleReCaptchaV2ServiceProvider"
9292
```
9393

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.
9595

9696
## Basic Usage
9797
#### Setting up your Google reCAPTCHA details in config file
@@ -113,8 +113,8 @@ Include div with an ID inside your form, e.g.
113113
Include Template script in your bottom/header of your page, params should follow 'ID'=>'Action', e.g.
114114

115115
``` 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') !!}
118118
```
119119

120120
##### Example Usage
@@ -126,7 +126,7 @@ Include Template script in your bottom/header of your page, params should follow
126126
<input type="submit" value="submit">
127127
</form>
128128

129-
{!! GoogleReCaptchav2::render('contact_us_id'=>'contact_us') !!}
129+
{!! GoogleReCaptchaV2::render('contact_us_id'=>'contact_us') !!}
130130

131131
```
132132

@@ -202,19 +202,19 @@ You can also directly use registered service by calling the following method.
202202
- verifyResponse() which accepts the token value from your form. This return Google reCAPTCHA Response object.
203203

204204
``` php
205-
GoogleReCaptchav2::setAction($action)->verifyResponse($value, $ip=null);
205+
GoogleReCaptchaV2::setAction($action)->verifyResponse($value, $ip=null);
206206
```
207207

208208
Example Usage
209209

210210
``` 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();
214214
```
215215

216216
``` php
217-
GoogleReCaptchav2::verifyResponse($request->input('g-recaptcha-response'))->getMessage()
217+
GoogleReCaptchaV2::verifyResponse($request->input('g-recaptcha-response'))->getMessage()
218218
```
219219

220220
## Sample Use Case
@@ -254,15 +254,15 @@ Route::post('/verify', 'ReCaptchaController@verify');
254254
<input type="submit" value="submit">
255255
</form>
256256

257-
{!! GoogleReCaptchav2::render('contact_us_id') !!}
257+
{!! GoogleReCaptchaV2::render('contact_us_id') !!}
258258
```
259259

260260

261261
## Advanced Usage
262262

263263
#### Custom implementation on Template
264264

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:
266266
``` PHP
267267
[
268268
...

0 commit comments

Comments
 (0)