私はエラーを取得する追加したすべての新しい社交プロバイダとLaravel 5.4と名士3.0ドライバー[プロバイダ]サポートされていませんlaravel /社交
を使用しています:socialiteprovidersを追加するときに/例えば
Driver [provider] not supported.
Driver [twitch] not supported.
私は予想通り例えばgithubの作品、すでに名士に組み込まれていますプロバイダを使用することができますしかし、私はエラーになります3.0をけいれん。
私は3つの異なるプロバイダを試しましたが、毎回同じ結果が得られましたが、何が間違っていますか?ここで
は私のルートです:
Route::get('/auth/bnet', '[email protected]');
Route::get('/auth/bnet/return', function() {
$user = Socialite::driver('battlenet')->user();
dd($user->accessTokenResponseBody);
});
Route::get('/auth/git', function() {
return Socialite::driver('github')->redirect();
});
Route::get('/auth/twitch', function() {
return Socialite::with('twitch')->redirect();
});
は、ここに私の$は私のEventServiceProviderから聞きます:
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// add your listeners (aka providers) here
//'SocialiteProviders\Battlenet\[email protected]',
'Reflex\SocialiteProviders\BattleNet\[email protected]',
'SocialiteProviders\Twitch\[email protected]',
],
];
私はアプリで自分のプロバイダの配列に、SocialiteProviders \マネージャ\のServiceProvider ::クラスが追加されました.php、私は私のエイリアス配列にもSocialiteファサード( 'Socialite' => Laravel \ Socialite \ Facades \ Socialite :: class)を追加しました。私の.envに適切なキーを追加しました