public function addSocialRelation(User $user, $serviceName, AbstractUser $response)
    {
        // create relation for new user and social integration
        return $this->newQB()->insert(
            [
                'user_id'    => $user->id,
                'social_id'  => $serviceName . '_' . $response->id,
                'created_at' => \DB::raw('NOW()')
            ]
        );
    }
public function addSocialRelation(User $user, $serviceName, AbstractUser $response)
    {
        // create relation for new user and social integration
        return $this->newQB()->insert(
            [
                'user_id'    => $user->id,
                'social_id'  => $serviceName . '_' . $response->id,
                'created_at' => \DB::raw('NOW()')
            ]
        );
    }
public function addSocialRelation ( User $ user , $ serviceName , AbstractUser $ response ) { // create relation for new user and social integration return $ this -> newQB ( ) -> insert ( [ 'user_id' => $ user -> id , 'social_id' => $ serviceName . '_' . $ response -> id , 'created_at' => \ DB :: raw ( 'NOW()' ) ] ) ; }
Function creates relation for given user and social integration.

@param $user        User user entity
@param $serviceName string name of social service
@param $response    AbstractUser response data

@return mixed
Function creates relation for given user and social integration .