Skip to content

Commit

Permalink
Changed service provider file path and example (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofan authored Apr 16, 2024
1 parent 9ea8874 commit cddc046
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docs/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,25 @@ composer require socialiteproviders/zoho

## 2. Service Provider

* Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in `config\app.php` if you have added it already.
* Remove `Laravel\Socialite\SocialiteServiceProvider` if you have added it already.

* Add `\SocialiteProviders\Manager\ServiceProvider::class` to your `providers[]` array in `config\app.php`.
* Add `\SocialiteProviders\Manager\ServiceProvider::class`.

For example:
### For example in Laravel 11+

In `bootstrap/providers.php`.

``` php
return [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
\SocialiteProviders\Manager\ServiceProvider::class, // add
];
```

### For example in Laravel 10 or below

In `config\app.php`.

``` php
'providers' => [
Expand Down

0 comments on commit cddc046

Please sign in to comment.