laravel 8 sociallite 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('google')->stateless()->user();