Skip to content

Commit 430d81c

Browse files
committed
Updated validation docs with timezone rule
This is for PR laravel/framework#4600, since it got merged.
1 parent 0dd99f8 commit 430d81c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

validation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ Below is a list of all available validation rules and their function:
189189
- [Required Without All](#rule-required-without-all)
190190
- [Same](#rule-same)
191191
- [Size](#rule-size)
192+
- [Timezone](#rule-timezone)
192193
- [Unique (Database)](#rule-unique)
193194
- [URL](#rule-url)
194195

@@ -394,6 +395,11 @@ The given _field_ must match the field under validation.
394395

395396
The field under validation must have a size matching the given _value_. For string data, _value_ corresponds to the number of characters. For numeric data, _value_ corresponds to a given integer value. For files, _size_ corresponds to the file size in kilobytes.
396397

398+
<a name="rule-timezone"></a>
399+
#### timezone
400+
401+
The field under validation must be a valid timezone identifier according to the `timezone_identifiers_list` PHP function.
402+
397403
<a name="rule-unique"></a>
398404
#### unique:_table_,_column_,_except_,_idColumn_
399405

0 commit comments

Comments
 (0)