Twitter social login for laravel 11

SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider

Here we are using the Laravel Socialite plugin. Here are the steps you can perform to make it working.

Step 1 : Include laravel socialite into your project via composer.

composer require laravel/socialite

Step 2 : Add twitter socialte provider.

composer require socialiteproviders/twitter

and follow the instructions on this link according to your version. 

if you see this error 

SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider

Then just add below code and you are good to go. 
 'twitter-oauth-2' => [    
        'client_id' => env('TWITTER_CLIENT_ID'),  
        'client_secret' => env('TWITTER_CLIENT_SECRET'),  
        'redirect' => env('TWITTER_REDIRECT_URI') 
    ],

    Services Interested In