fixed bugs in validation classes.
This commit is contained in:
parent
471ba2f8ae
commit
78301fb8c7
|
@ -34,7 +34,7 @@ public function check($attribute, $attributes)
|
|||
* @param string $expression
|
||||
* @return Format_Of
|
||||
*/
|
||||
public function with($expression)
|
||||
public function using($expression)
|
||||
{
|
||||
$this->expression = $expression;
|
||||
return $this;
|
||||
|
|
|
@ -39,7 +39,7 @@ public function check($attribute, $attributes)
|
|||
$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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue