public function getValidationRules($formName = false)
    {
        if (is_bool($formName))
            $formName = $this->currentFormName;

        if (array_key_exists($formName, $this->validationRules)) {
            return $this->validationRules[$formName];
        }

        return [];
    }
public function getValidationRules($formName = false)
    {
        if (is_bool($formName))
            $formName = $this->currentFormName;

        if (array_key_exists($formName, $this->validationRules)) {
            return $this->validationRules[$formName];
        }

        return [];
    }
public function getValidationRules ( $ formName = false ) { if ( is_bool ( $ formName ) ) $ formName = $ this -> currentFormName ; if ( array_key_exists ( $ formName , $ this -> validationRules ) ) { return $ this -> validationRules [ $ formName ] ; } return [ ] ; }
Get all given validation rules.

@param string|bool $formName
@return array Laravel validation rules
Get all given validation rules .