fixed bugs in validation classes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user