Skip to content

Commit de73a51

Browse files
authored
fix: add laravel 11 docs all providers (#1187)
1 parent 0395b7e commit de73a51

File tree

234 files changed

+3810
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+3810
-40
lines changed

src/Acclaim/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('acclaim', \SocialiteProviders\Acclaim\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/Admitad/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('admitad', \SocialiteProviders\Admitad\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/Adobe/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,26 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
1616
```
1717

1818
### Add provider event listener
19+
20+
#### Laravel 11+
21+
22+
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.
23+
24+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
25+
26+
```php
27+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
28+
$event->extendSocialite('adobe', \SocialiteProviders\Adobe\Provider::class);
29+
});
30+
```
31+
<details>
32+
<summary>
33+
Laravel 10 or below
34+
</summary>
1935
Configure the package's listener to listen for `SocialiteWasCalled` events.
2036

2137
Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.
38+
2239
```php
2340
protected $listen = [
2441
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
@@ -27,6 +44,7 @@ protected $listen = [
2744
],
2845
];
2946
```
47+
</details>
3048

3149
### Usage
3250
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

src/Amazon/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('amazon', \SocialiteProviders\Amazon\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/AmoCRM/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2121

2222
### Add provider event listener
2323

24+
#### Laravel 11+
25+
26+
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.
27+
28+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
29+
30+
```php
31+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
32+
$event->extendSocialite('amocrm', \SocialiteProviders\AmoCRM\Provider::class);
33+
});
34+
```
35+
<details>
36+
<summary>
37+
Laravel 10 or below
38+
</summary>
2439
Configure the package's listener to listen for `SocialiteWasCalled` events.
2540

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

3753
### Usage
3854

src/AngelList/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('angellist', \SocialiteProviders\AngelList\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/AppNet/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('appnet', \SocialiteProviders\AppNet\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/Apple/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ See [Configure Apple ID Authentication](https://developer.okta.com/blog/2019/06/
2424
2525
### Add provider event listener
2626

27+
#### Laravel 11+
28+
29+
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.
30+
31+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
32+
33+
```php
34+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
35+
$event->extendSocialite('apple', \SocialiteProviders\Apple\Provider::class);
36+
});
37+
```
38+
<details>
39+
<summary>
40+
Laravel 10 or below
41+
</summary>
2742
Configure the package's listener to listen for `SocialiteWasCalled` events.
2843

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

4056
### Usage
4157

src/ArcGIS/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('arcgis', \SocialiteProviders\ArcGIS\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/Asana/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('asana', \SocialiteProviders\Asana\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/Atlassian/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Please see the [Base Installation Guide](https://socialiteproviders.com/usage/),
2020

2121
### Add provider event listener
2222

23+
#### Laravel 11+
24+
25+
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.
26+
27+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
28+
29+
```php
30+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
31+
$event->extendSocialite('atlassian', \SocialiteProviders\Atlassian\Provider::class);
32+
});
33+
```
34+
<details>
35+
<summary>
36+
Laravel 10 or below
37+
</summary>
2338
Configure the package's listener to listen for `SocialiteWasCalled` events.
2439

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

3652
### Usage
3753

src/Auth0/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ AUTH0_BASE_URL=https://example.auth0.com/
2929

3030
### Add provider event listener
3131

32+
#### Laravel 11+
33+
34+
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.
35+
36+
* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
37+
38+
```php
39+
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
40+
$event->extendSocialite('auth0', \SocialiteProviders\Auth0\Provider::class);
41+
});
42+
```
43+
<details>
44+
<summary>
45+
Laravel 10 or below
46+
</summary>
3247
Configure the package's listener to listen for `SocialiteWasCalled` events.
3348

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

4561
### Usage
4662

0 commit comments

Comments
 (0)