public function removeRequired()
    {
        foreach ($this->getRules() as $key => $rules) {
            $newRules[$key] = preg_grep("/^required/", $rules, PREG_GREP_INVERT);
        }
        $this->rules = $newRules;
        return $this;
    }
public function removeRequired()
    {
        foreach ($this->getRules() as $key => $rules) {
            $newRules[$key] = preg_grep("/^required/", $rules, PREG_GREP_INVERT);
        }
        $this->rules = $newRules;
        return $this;
    }
public function removeRequired ( ) { foreach ( $ this -> getRules ( ) as $ key => $ rules ) { $ newRules [ $ key ] = preg_grep ( "/^required/" , $ rules , PREG_GREP_INVERT ) ; } $ this -> rules = $ newRules ; return $ this ; }
remove required rule from rules function

@return array
remove required rule from rules function