Commit 78301fb8 by Taylor Otwell

fixed bugs in validation classes.

parent 471ba2f8
......@@ -34,7 +34,7 @@ class Format_Of extends Rule {
* @param string $expression
* @return Format_Of
*/
public function with($expression)
public function using($expression)
{
$this->expression = $expression;
return $this;
......
......@@ -39,7 +39,7 @@ class Uniqueness_Of extends Rule {
$this->column = $attribute;
}
return DB::table(Eloquent::table($this->table)->where($this->column, '=', $attributes[$attribute])->count() == 0;
return DB::table(Eloquent::table($this->table))->where($this->column, '=', $attributes[$attribute])->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