0

Laravel Socialite Provider 怎样针对同一个开发平台配置多个不同的配置项

caroline created at6 years ago view count: 2340
report
回复
0
use Laravel\Socialite\Facades\Socialite;
use \SocialiteProviders\Manager\Config;
public function connect(){
    $config = new Config(
            env('WEIBO_CONSUMER_KEY_1'),
            env('WEIBO_CONSUMER_SECRET_1'),
            env('WEIBO_REDIRECT_URI_1'),
            );
    return Socialite::with('weibo')->setConfig($config1)->redirect();
}
6 years ago 回复