removed called to eloquent in uniqueness_of.
This commit is contained in:
@@ -39,7 +39,7 @@ class Uniqueness_Of extends Rule {
|
|||||||
$this->column = $attribute;
|
$this->column = $attribute;
|
||||||
}
|
}
|
||||||
|
|
||||||
return DB::table(Eloquent::table($this->table))->where($this->column, '=', $attributes[$attribute])->count() == 0;
|
return DB::table($this->table)->where($this->column, '=', $attributes[$attribute])->count() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user