diff --git a/src/ModelTrait.php b/src/ModelTrait.php index 5435093..a40e1e0 100644 --- a/src/ModelTrait.php +++ b/src/ModelTrait.php @@ -137,8 +137,14 @@ public function scopeValidate(\Illuminate\Database\Eloquent\Builder $query, $pre $validator->setAttributeNames($this->getAttributeNames()); $validator->after([$this, 'saveValidation']); - $passes = $validator->passes(); + + if ($passes && $validator->getRules()) { + $validator = \Validator::make($this->attributes, $validator->getRules()); + $validator->setAttributeNames($this->getAttributeNames()); + + $passes = $validator->passes(); + } } if (! $passes) {