Skip to content

Commit

Permalink
- Added new static method to enforce package to use specific environm…
Browse files Browse the repository at this point in the history
…ent on booting.

- Added all environments on config file.
  • Loading branch information
aemaddin committed Dec 16, 2022
1 parent e05545f commit f39958d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ ZOHO_CLIENT_SECRET="Code from Client Secrit Section"
ZOHO_REDIRECT_URI=https://APP_URL/zoho/oauth2callback
[email protected]
ZOHO_TOKEN="Code Generated from last step"
# available datacenters (USDataCenter, EUDataCenter, INDataCenter, CNDataCenter, AUDataCenter)
ZOHO_DATACENTER=USDataCenter
ZOHO_SANDBOX=true
```

Expand All @@ -58,6 +61,16 @@ php artisan vendor:publish --tag="zoho-v3-migrations"
php artisan migrate
```

### Environments
maybe in some cases you wish to enforce zoho to use one of zoho's environments, so you can go to `AppServiceProvider`
and use `Zoho::useEnvironment()` method

```php
Zoho::useEnvironment(EUDataCenter::DEVELOPER());
```

So that will override config settings.

## Usage

Imagine that you need to get all modules from Zoho system.
Expand Down

0 comments on commit f39958d

Please sign in to comment.