public function createSocialUser($socialUser, $userId)
    {
        return SocialUser::create([
            'user_id'     => $userId,
            'social_id'   => $socialUser->id,
            'social_type' => $this->provider,
            'nickname'    => $socialUser->nickname,
            'name'        => $socialUser->name,
            'email'       => $socialUser->email,
            'avatar'      => $socialUser->avatar,
            'meta'        => json_encode($socialUser),
        ]);
    }
public function createSocialUser($socialUser, $userId)
    {
        return SocialUser::create([
            'user_id'     => $userId,
            'social_id'   => $socialUser->id,
            'social_type' => $this->provider,
            'nickname'    => $socialUser->nickname,
            'name'        => $socialUser->name,
            'email'       => $socialUser->email,
            'avatar'      => $socialUser->avatar,
            'meta'        => json_encode($socialUser),
        ]);
    }
public function createSocialUser ( $ socialUser , $ userId ) { return SocialUser :: create ( [ 'user_id' => $ userId , 'social_id' => $ socialUser -> id , 'social_type' => $ this -> provider , 'nickname' => $ socialUser -> nickname , 'name' => $ socialUser -> name , 'email' => $ socialUser -> email , 'avatar' => $ socialUser -> avatar , 'meta' => json_encode ( $ socialUser ) , ] ) ; }
Create social user.

@param $socialUser
@param $userId
@return mixed
Create social user .