src/Controllers/SocialController.php
private function registerSocial($provider, $user, $dbuser = null)
    {
        return Social::create([
            'user_id'      => $dbuser ? $dbuser->id : Auth::user()->id,
            'provider'     => $provider,
            'token'        => $user->token,
            'secret_token' => isset($user->tokenSecret) ? $user->tokenSecret : null,
            'email'        => $user->getEmail(),
        ]);
    }
private function registerSocial($provider, $user, $dbuser = null)
    {
        return Social::create([
            'user_id'      => $dbuser ? $dbuser->id : Auth::user()->id,
            'provider'     => $provider,
            'token'        => $user->token,
            'secret_token' => isset($user->tokenSecret) ? $user->tokenSecret : null,
            'email'        => $user->getEmail(),
        ]);
    }
Registers the social account.

@param string                     $provider
@param mixed                      $user
@param \Laralum\Users\Models\User $dbuser

@return bool