Commit fd446aec authored by Taylor Otwell's avatar Taylor Otwell

fix bug in validation unique method.

parent 224b9ead
......@@ -427,7 +427,7 @@ class Validator {
// fine for the given ID to exist in the table.
if (isset($parameters[2]))
{
$query->where('id', '<>', $parameters[2]);
$query->where($attribute, '<>', $parameters[2]);
}
return $query->count() == 0;
......
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