removed called to eloquent in uniqueness_of.

This commit is contained in:
Taylor Otwell
2011-06-21 22:50:09 -05:00
parent 7f8c686360
commit 24c2344ae4

View File

@@ -39,7 +39,7 @@ class Uniqueness_Of extends Rule {
$this->column = $attribute; $this->column = $attribute;
} }
return DB::table(Eloquent::table($this->table))->where($this->column, '=', $attributes[$attribute])->count() == 0; return DB::table($this->table)->where($this->column, '=', $attributes[$attribute])->count() == 0;
} }
/** /**