Skip to content

Commit

Permalink
fix: add laravel 11 docs all providers (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
atymic authored Apr 1, 2024
1 parent 0395b7e commit de73a51
Show file tree
Hide file tree
Showing 234 changed files with 3,810 additions and 40 deletions.
16 changes: 16 additions & 0 deletions src/Acclaim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('acclaim', \SocialiteProviders\Acclaim\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/Admitad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('admitad', \SocialiteProviders\Admitad\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
18 changes: 18 additions & 0 deletions src/Adobe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,26 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
```

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('adobe', \SocialiteProviders\Adobe\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```php
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
Expand All @@ -27,6 +44,7 @@ protected $listen = [
],
];
```
</details>

### Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
Expand Down
16 changes: 16 additions & 0 deletions src/Amazon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('amazon', \SocialiteProviders\Amazon\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/AmoCRM/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('amocrm', \SocialiteProviders\AmoCRM\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -33,6 +48,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/AngelList/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('angellist', \SocialiteProviders\AngelList\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/AppNet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('appnet', \SocialiteProviders\AppNet\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/Apple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ See [Configure Apple ID Authentication](https://developer.okta.com/blog/2019/06/
### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('apple', \SocialiteProviders\Apple\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -36,6 +51,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/ArcGIS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('arcgis', \SocialiteProviders\ArcGIS\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/Asana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('asana', \SocialiteProviders\Asana\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/Atlassian/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('atlassian', \SocialiteProviders\Atlassian\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -32,6 +47,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
16 changes: 16 additions & 0 deletions src/Auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ AUTH0_BASE_URL=https://example.auth0.com/

### Add provider event listener

#### Laravel 11+

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('auth0', \SocialiteProviders\Auth0\Provider::class);
});
```
<details>
<summary>
Laravel 10 or below
</summary>
Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
Expand All @@ -41,6 +56,7 @@ protected $listen = [
],
];
```
</details>

### Usage

Expand Down
Loading

0 comments on commit de73a51

Please sign in to comment.