diff --git a/src/PropertyCollection.php b/src/PropertyCollection.php index 6dd7eae..5391f21 100644 --- a/src/PropertyCollection.php +++ b/src/PropertyCollection.php @@ -72,9 +72,8 @@ public function pull() public function validate() { - $properties = $this->keys(); $rules = collect($this->component->getRules())->filter( - fn ($rule, $key) => in_array($key, $properties) + fn ($rule, $key) => in_array($key, $this->keys()) )->toArray(); return $this->component->validate($rules);