Package Data | |
---|---|
Maintainer Username: | m1guelpf |
Maintainer Contact: | techxu@gmail.com (xyxu) |
Package Create Date: | 2015-06-29 |
Package Last Update: | 2024-11-07 |
Home Page: | https://socialiteproviders.com/Weibo/ |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:19:55 |
Package Statistics | |
---|---|
Total Downloads: | 123,347 |
Monthly Downloads: | 160 |
Daily Downloads: | 10 |
Total Stars: | 35 |
Total Watchers: | 4 |
Total Forks: | 6 |
Total Open Issues: | 0 |
composer require socialiteproviders/weibo
Please see the Base Installation Guide, then follow the provider specific instructions below.
config/services.php
.'weibo' => [
'client_id' => env('WEIBO_CLIENT_ID'),
'client_secret' => env('WEIBO_CLIENT_SECRET'),
'redirect' => env('WEIBO_REDIRECT_URI')
],
Configure the package's listener to the listen for SocialiteWasCalled
events.
Add the event to your listen[]
array in app/Providers/EventServiceProvider
. See the Base Installation Guide for detailed instructions.
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
'SocialiteProviders\\Weibo\\WeiboExtendSocialite@handle',
],
];
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::with('weibo')->redirect();