public function socialUpdate($provider, User $user)
    {
        $this->getProviderDetails($provider);

        // Get the users.
        $socialUser = $this->getSocialUser();

        // Update or create provider details.
        $this->updateFromProvider($user, $socialUser);

        return $socialUser;
    }
public function socialUpdate($provider, User $user)
    {
        $this->getProviderDetails($provider);

        // Get the users.
        $socialUser = $this->getSocialUser();

        // Update or create provider details.
        $this->updateFromProvider($user, $socialUser);

        return $socialUser;
    }
public function socialUpdate ( $ provider , User $ user ) { $ this -> getProviderDetails ( $ provider ) ; // Get the users. $ socialUser = $ this -> getSocialUser ( ) ; // Update or create provider details. $ this -> updateFromProvider ( $ user , $ socialUser ) ; return $ socialUser ; }
Update a user's social details fore a given provider.

@param string $provider The provider being logged in through.
@param User   $user     The user these details are for.

@return \Laravel\Socialite\AbstractUser|null
@throws \Exception
Update a user s social details fore a given provider .