Commit 78301fb8 authored by Taylor Otwell's avatar Taylor Otwell

fixed bugs in validation classes.

parent 471ba2f8
...@@ -34,7 +34,7 @@ class Format_Of extends Rule { ...@@ -34,7 +34,7 @@ class Format_Of extends Rule {
* @param string $expression * @param string $expression
* @return Format_Of * @return Format_Of
*/ */
public function with($expression) public function using($expression)
{ {
$this->expression = $expression; $this->expression = $expression;
return $this; return $this;
......
...@@ -39,7 +39,7 @@ class Uniqueness_Of extends Rule { ...@@ -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(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