Commit fd446aec authored by Taylor Otwell's avatar Taylor Otwell

fix bug in validation unique method.

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