Skip to content

Commit

Permalink
doc block update
Browse files Browse the repository at this point in the history
  • Loading branch information
Graziel committed Apr 6, 2016
1 parent 1c2a9d9 commit 219f22a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Validation/Validator.php
Expand Up @@ -422,7 +422,14 @@ public function remove($field, $rule = null)
}

/**
* Sets whether a field is required to be present in data array.
* Sets whether a field is required to be present in data array. You can also pass array.
* Using an array will let you provide the following keys:
*
* - `mode` individual mode for field
* - `message` individual error message for field
*
* You can also set mode and message for all passed fields, the individual settings
* takes precedence over group setting.
*
* @param string|array $field the name of the field
* @param bool|string|callable $mode Valid values are true, false, 'create', 'update'.
Expand Down

0 comments on commit 219f22a

Please sign in to comment.