generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added new static method to enforce package to use specific environm…
…ent on booting. - Added all environments on config file.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
||
|
@@ -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. | ||
|