public function filterRawAttributes(array $attributes = [], $keys = ['count', 'dn'])
    {
        $attributes = Arr::except($attributes, $keys);

        array_walk($attributes, function (&$value) use ($keys) {
            $value = is_array($value) ?
                $this->filterRawAttributes($value, $keys) :
                $value;
        });

        return $attributes;
    }
public function filterRawAttributes(array $attributes = [], $keys = ['count', 'dn'])
    {
        $attributes = Arr::except($attributes, $keys);

        array_walk($attributes, function (&$value) use ($keys) {
            $value = is_array($value) ?
                $this->filterRawAttributes($value, $keys) :
                $value;
        });

        return $attributes;
    }
public function filterRawAttributes ( array $ attributes = [ ] , $ keys = [ 'count' , 'dn' ] ) { $ attributes = Arr :: except ( $ attributes , $ keys ) ; array_walk ( $ attributes , function ( & $ value ) use ( $ keys ) { $ value = is_array ( $ value ) ? $ this -> filterRawAttributes ( $ value , $ keys ) : $ value ; } ) ; return $ attributes ; }
Filters the count key recursively from raw LDAP attributes.

@param array        $attributes
@param array|string $keys

@return array
Filters the count key recursively from raw LDAP attributes .