fixed bugs in validation classes.

This commit is contained in:
Taylor Otwell 2011-06-21 22:22:52 -05:00
parent 471ba2f8ae
commit 78301fb8c7
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public function check($attribute, $attributes)
* @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;

View File

@ -39,7 +39,7 @@ public function check($attribute, $attributes)
$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;
} }
/** /**