update docs

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
2025-04-29 21:50:12 +02:00
parent 65d4b12006
commit 85702fcb2c
3 changed files with 5 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ In Laravel 11, the default EventServiceProvider provider was removed. Instead, a
public function boot(): void
{
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' => [
'driver' => 'anikeen-id',
'driver' => 'anikeen',
'provider' => 'sso-users',
],
],

View File

@@ -59,7 +59,7 @@ In Laravel 11, the default EventServiceProvider provider was removed. Instead, a
public function boot(): void
{
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' => [
'driver' => 'anikeen-id',
'driver' => 'anikeen',
'provider' => 'sso-users',
],
],

View File

@@ -43,7 +43,7 @@ class AnikeenIdServiceProvider extends ServiceProvider
protected function registerGuard(): void
{
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) {
$this->app->refresh('request', $guard, 'setRequest');
});