Laravel Socilite 7
return Socialite::driver('google')->stateless()->user();
Defiant Dolphin
return Socialite::driver('google')->stateless()->user();
$user = Socialite::driver('twitter')->userFromTokenAndSecret($token, $secret);
$user = Socialite::driver('github')->userFromToken($token);
Route::get('login/github', 'Auth\LoginController@redirectToProvider');
Route::get('login/github/callback', 'Auth\LoginController@handleProviderCallback');
return Socialite::driver('github')
->scopes(['read:user', 'public_repo'])
->redirect();