Commit d0b160c3 authored by Taylor Otwell's avatar Taylor Otwell

Fix bug causing non-required fields to throw errors in Validator class.

parent 89b5ad03
......@@ -118,7 +118,7 @@ class Validator {
// No validation will be run for attributes that do not exist unless the rule being validated
// is "required" or "accepted". No other rules have implicit "required" checks.
if ( ! array_key_exists($attribute, $this->attributes) and ! in_array($rule, array('required', 'accepted')))
if ( ! static::validate_required($attribute) and ! in_array($rule, array('required', 'accepted')))
{
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment