mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-17 23:56:12 +00:00
@@ -59,7 +59,7 @@ In Laravel 11, the default EventServiceProvider provider was removed. Instead, a
|
|||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
|
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
|
||||||
$event->extendSocialite('anikeen-id', \Anikeen\Id\Socialite\Provider::class);
|
$event->extendSocialite('anikeen', \Anikeen\Id\Socialite\Provider::class);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -139,7 +139,7 @@ reference the guard in the `guards` configuration of your `auth.php` configurati
|
|||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
'api' => [
|
||||||
'driver' => 'anikeen-id',
|
'driver' => 'anikeen',
|
||||||
'provider' => 'sso-users',
|
'provider' => 'sso-users',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ In Laravel 11, the default EventServiceProvider provider was removed. Instead, a
|
|||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
|
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
|
||||||
$event->extendSocialite('anikeen-id', \Anikeen\Id\Socialite\Provider::class);
|
$event->extendSocialite('anikeen', \Anikeen\Id\Socialite\Provider::class);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -139,7 +139,7 @@ reference the guard in the `guards` configuration of your `auth.php` configurati
|
|||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
'api' => [
|
||||||
'driver' => 'anikeen-id',
|
'driver' => 'anikeen',
|
||||||
'provider' => 'sso-users',
|
'provider' => 'sso-users',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class AnikeenIdServiceProvider extends ServiceProvider
|
|||||||
protected function registerGuard(): void
|
protected function registerGuard(): void
|
||||||
{
|
{
|
||||||
Auth::resolved(function ($auth) {
|
Auth::resolved(function ($auth) {
|
||||||
$auth->extend('anikeen-id', function ($app, $name, array $config) {
|
$auth->extend('anikeen', function ($app, $name, array $config) {
|
||||||
return tap($this->makeGuard($config), function ($guard) {
|
return tap($this->makeGuard($config), function ($guard) {
|
||||||
$this->app->refresh('request', $guard, 'setRequest');
|
$this->app->refresh('request', $guard, 'setRequest');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user