Skip to content

Commit cdc127f

Browse files
committed
readme improvement
1 parent 961cbef commit cdc127f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,24 @@ Inform Google Search [Indexing API](https://developers.google.com/search/apis/in
1414
composer require noud/laravel-google-indexing-api
1515
```
1616

17-
## Use
17+
2) Now follow the provider steps at [Google Api Client Wrapper](https://github.com/pulkitjalan/google-apiclient#laravel) and publish the config file.
18+
19+
## Configuration
20+
21+
1) Add these settings to your ```.env```.
22+
```
23+
GOOGLE_SERVICE_ENABLED=true
24+
GOOGLE_SERVICE_ACCOUNT_JSON_LOCATION="/var/www/seo/config/google/google-service-account.json"
25+
```
26+
27+
2) Add the indexing scope to ```config/google.php```, like so:
28+
```
29+
'scopes' => [
30+
'https://www.googleapis.com/auth/indexing'
31+
],
32+
```
33+
34+
## Usage
1835

1936
Here is a usage example:
2037
```

0 commit comments

Comments
 (0)