Closed fabiendeloye closed 7 months ago
Same problem here but with the Microsoft provider.
I modified the AppServiceProvider with the following:
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) { $event->extendSocialite('microsoft', \SocialiteProviders\Microsoft\MicrosoftExtendSocialite::class,); });
and I'm receiving the following:
SocialiteProviders\Microsoft\MicrosoftExtendSocialite does not extend Laravel\Socialite\Two\AbstractProvider
I try to add Microsoft Azure to my fresh Laravel 11 installation, but It's not working... It's compatible with laravel 11 ?
I have this error : SocialiteProviders\Azure\AzureExtendSocialite does not extend Laravel\Socialite\Two\AbstractProvider
Thanks
Try this:
In AppServiceProvider.php
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('microsoft', \SocialiteProviders\Microsoft\Provider::class,);
});
and then
php artisan cache:clear
That fixed it for me!
Docs added for all providers :)
Thanks it's fixed for me too :)
I try to add Microsoft Azure to my fresh Laravel 11 installation, but It's not working... It's compatible with laravel 11 ?
I have this error : SocialiteProviders\Azure\AzureExtendSocialite does not extend Laravel\Socialite\Two\AbstractProvider
Thanks