Skip to content

Commit

Permalink
Merge pull request laravel#1044 from garygreen/4.2
Browse files Browse the repository at this point in the history
Added 'string' validation rule
  • Loading branch information
taylorotwell committed Jan 27, 2015
2 parents b26e2ff + a73aaf4 commit fdca326
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ Below is a list of all available validation rules and their function:
- [Required Without All](#rule-required-without-all)
- [Same](#rule-same)
- [Size](#rule-size)
- [String](#rule-string)
- [Timezone](#rule-timezone)
- [Unique (Database)](#rule-unique)
- [URL](#rule-url)
Expand Down Expand Up @@ -395,6 +396,11 @@ The given _field_ must match the field under validation.

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.

<a name="rule-string"></a>
#### string:_value_

The field under validation must be a string type.

<a name="rule-timezone"></a>
#### timezone

Expand Down

0 comments on commit fdca326

Please sign in to comment.