public function makeOptional($rule)
    {
        $conditions = explode('|', $rule);
        foreach( $conditions as $key => $condition ) {
            if( $condition === 'required' ) {
                unset( $conditions[ $key ] );
            }
        }

        return implode( '|', $conditions );
    }