Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ You can install the package via `composer require`:
```bash
composer require asciisd/zoho-v3
```
After installing the package you can publish the config file with:

### Register Service Provider

If the package is not auto-discovered, add the service provider in `config/app.php`:

```php
'providers' => [
// ...existing providers...
Asciisd\Zoho\ZohoServiceProvider::class,
],
```

After registering the provider, you can publish the config file with:

```bash
php artisan vendor:publish --tag="zoho-v3-config"
Expand Down Expand Up @@ -79,6 +91,15 @@ php artisan vendor:publish --tag="zoho-v3-migrations"
php artisan migrate
```


### Routes

Package automatically registers the following route for Zoho OAuth2 callback handling:

```php
Route::get('zoho/oauth2callback', [\Asciisd\Zoho\Http\Controllers\ZohoController::class, 'oauth2callback']);
```

### 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
Expand Down