@@ -661,28 +661,29 @@ alpha_numeric No Fails if field contains anything other than
661661alpha_numeric_space No Fails if field contains anything other than alpha-numeric characters, numbers or space.
662662decimal No Fails if field contains anything other than a decimal number.
663663differs Yes Fails if field does not differ from the one in the parameter. differs[field_name]
664- exact_length Yes Fails if field is not exactly the parameter value. One or more comma-separated values. exact_length[5] or exact_length[5,8,12]
664+ exact_length Yes Fails if field is not exactly the parameter value. One or more comma-separated values. exact_length[5] or exact_length[5,8,12]
665665greater_than Yes Fails if field is less than or equal to the parameter value or not numeric. greater_than[8]
666666greater_than_equal_to Yes Fails if field is less than the parameter value, or not numeric. greater_than_equal_to[5]
667+ if_exist No If this rule is present, validation will only return possible errors if the field key exists,
668+ regardless of its value.
667669in_list Yes Fails if field is not within a predetermined list. in_list[red,blue,green]
668670integer No Fails if field contains anything other than an integer.
669671is_natural No Fails if field contains anything other than a natural number: 0, 1, 2, 3, etc.
670672is_natural_no_zero No Fails if field contains anything other than a natural number, except zero: 1, 2, 3, etc.
673+ is_unique Yes Checks if this field value exists in the database. Optionally set a is_unique[table.field,ignore_field,ignore_value]
674+ column and value to ignore, useful when updating records to ignore itself.
671675less_than Yes Fails if field is greater than or equal to the parameter value or not numeric. less_than[8]
672676less_then_equal_to Yes Fails if field is greater than the parameter value or not numeric. less_than_equal_to[8]
673677matches Yes The value must match the value of the field in the parameter. matches[field]
674678max_length Yes Fails if field is longer than the parameter value. max_length[8]
675679min_length Yes Fails if field is shorter than the parameter value. min_length[3]
676680numeric No Fails if field contains anything other than numeric characters.
677681regex_match Yes Fails if field does not match the regular expression. regex_match[/regex/]
678- if_exist No If this rule is present, validation will only return possible errors if the field key exists,
679- regardless of its value.
680682permit_empty No Allows the field to receive an empty array, empty string, null or false.
681683required No Fails if the field is an empty array, empty string, null or false.
682684required_with Yes The field is required when any of the other required fields are present in the data. required_with[field1,field2]
683685required_without Yes The field is required when all of the other fields are present in the data but not required. required_without[field1,field2]
684- is_unique Yes Checks if this field value exists in the database. Optionally set a is_unique[table.field,ignore_field,ignore_value]
685- column and value to ignore, useful when updating records to ignore itself.
686+ string No A generic alternative to the alpha* rules that confirms the element is a string
686687timezone No Fails if field does match a timezone per ``timezone_identifiers_list ``
687688valid_base64 No Fails if field contains anything other than valid Base64 characters.
688689valid_json No Fails if field does not contain a valid JSON string.
0 commit comments