We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982f2e9 commit 619a2b3Copy full SHA for 619a2b3
src/Validation.php
@@ -74,12 +74,13 @@ protected function validateAttribute(Attribute $attribute)
74
$attributeKey = $attribute->getKey();
75
$rules = $attribute->getRules();
76
77
-
78
$value = $this->getValue($attributeKey);
79
$isEmptyValue = $this->isEmptyValue($value);
80
81
$isValid = true;
82
foreach($rules as $ruleValidator) {
+ $ruleValidator->setAttribute($attribute);
83
+
84
if ($isEmptyValue && $ruleValidator instanceof Defaults) {
85
$value = $ruleValidator->check(null);
86
0 commit comments