app/Http/Controllers/Auth/LoginController.php
/**
     * Obtain the user information from GitHub.
     *
     * @return \Illuminate\Http\Response
     */
Obtain the user information from GitHub.
@return \Illuminate\Http\Response
Obtain the user information from GitHub . @return \ Illuminate \ Http \ Response
public function handleProviderCallback()
    {
        $user = Socialite::driver('github')->user();
         User::create([
             'name'=>$user->getNickname(),
             'email'=>$user->getEmail(),
         ]);
      return redirect(route('welcome.index'));
    }
public function handleProviderCallback ( ) { $ user = Socialite :: driver ( 'github' ) -> user ( ) ; User :: create ( [ 'name' => $ user -> getNickname ( ) , 'email' => $ user -> getEmail ( ) , ] ) ; return redirect ( route ( 'welcome.index' ) ) ; }
Obtain the user information from GitHub.
Obtain the user information from GitHub .