laravel/socialite laravel 8 and php 7.3 code example
Example 1: socialite laravel 7
return Socialite::driver('google')
->with(['hd' => 'example.com'])
->redirect();
Example 2: socialite laravel 7
return Socialite::driver('github')
->scopes(['read:user', 'public_repo'])
->redirect();