home | actionText | actionLink | features | footer | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
true |
Get Started → |
/about.html |
|
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();