install laravel socialite code example
Example 1: socialite laravel 7
'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => 'http://your-callback-url',
],
Example 2: socialite laravel 7
return Socialite::driver('github')
->setScopes(['read:user', 'public_repo'])
->redirect();