Skip to content
Permalink
Browse files

doc block update

  • Loading branch information...
Graziel committed Apr 6, 2016
1 parent 1c2a9d9 commit 219f22aa60bd3dcc6f97a744e42a7d657ce5ce83
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/Validation/Validator.php
@@ -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'.

0 comments on commit 219f22a

Please sign in to comment.
You can’t perform that action at this time.