File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,25 @@ Via Composer
31
31
$ composer require ryandeng/googlerecaptcha " ^0.1.3"
32
32
```
33
33
34
- If your Laravel framework version <= 5.4, please register the service provider in your config file: /config/app.php, otherwise please go to step 3 .
34
+ If your Laravel framework version <= 5.4, please register the service provider in your config file: /config/app.php, otherwise please skip it .
35
35
36
+
37
+ ``` php
38
+ 'providers'=[
39
+ ....,
40
+ RyanDeng\GoogleReCaptcha\Providers\GoogleReCaptchaV3ServiceProvider::class
41
+ ]
36
42
```
37
- RyanDeng\GoogleReCaptcha\Providers\GoogleReCaptchaV3ServiceProvider::class
43
+
44
+ And also
45
+ ``` php
46
+ 'aliases'=[
47
+ ....,
48
+ 'GoogleReCaptchaV3'=>\RyanDeng\GoogleReCaptcha\Facades\GoogleReCaptchaV3::class
49
+ ]
38
50
```
39
51
52
+
40
53
If your Laravel framework version is >= 5.5, just run the following command to publish views and config.
41
54
``` sh
42
55
$ php artisan vendor:publish --provider=" RyanDeng\GoogleReCaptcha\Providers\GoogleReCaptchaV3ServiceProvider"
You can’t perform that action at this time.
0 commit comments