diff --git a/docs/contexts.md b/docs/contexts.md index 6732601..0a326e6 100644 --- a/docs/contexts.md +++ b/docs/contexts.md @@ -63,7 +63,7 @@ $v->context('update', function(Validator $context) { // copy the rules (and messages) of the "insert" context. $context->copyContext('insert', function($rules) { foreach ($rules as $key => $chain) { - $context->optional($key); + $chain->required(false); } }); });