BookStack\Services\SocialAuthService::fillSocialAccount PHP Method

fillSocialAccount() public method

public fillSocialAccount ( string $socialDriver, Laravel\Socialite\Contracts\User $socialUser ) : SocialAccount
$socialDriver string
$socialUser Laravel\Socialite\Contracts\User
return BookStack\SocialAccount
    public function fillSocialAccount($socialDriver, $socialUser)
    {
        $this->socialAccount->fill(['driver' => $socialDriver, 'driver_id' => $socialUser->getId(), 'avatar' => $socialUser->getAvatar()]);
        return $this->socialAccount;
    }