| home |
true |
| actionText |
Get Started → |
| actionLink |
/about.html |
| features |
| title |
details |
Simplicity First |
Minimal setup with a familiar structure helps you focus on developing your newest product. |
|
| title |
details |
Seamless Integration |
Following the same API as Laravel Socialite allows for a seamless integration. |
|
| title |
details |
Powerful Support |
The Socialite Manager grants you access to both custom and official providers. |
|
|
| footer |
MIT Licensed | Copyright © 2018-present SocialiteProviders |
# install
composer require socialiteproviders/twitter
# register
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
'SocialiteProviders\Twitter\TwitterExtendSocialite@handle'
],
];
# configure
'twitter' => [
'client_id' => env('TWITTER_KEY'),
'client_secret' => env('TWITTER_SECRET'),
'redirect' => env('TWITTER_REDIRECT_URI'),
]
# start building
return Socialite::with('twitter')->redirect();