diff --git a/system/validator.php b/system/validator.php index 0e53372b..148343a1 100644 --- a/system/validator.php +++ b/system/validator.php @@ -305,7 +305,7 @@ class Validator { $parameters[1] = $attribute; } - return DB::table($parameters[0])->where($parameters[1], '=', $this->attributes[$attribute])->count() == 0; + return DB\Manager::connection()->table($parameters[0])->where($parameters[1], '=', $this->attributes[$attribute])->count() == 0; } /**