Commit b8e27533 authored by Taylor Otwell's avatar Taylor Otwell

use db manager in validator.

parent e3b63283
......@@ -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;
}
/**
......
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