File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -698,6 +698,25 @@ public function setContainer(ContainerInterface $container)
698
698
$ this ->container = $ container ;
699
699
}
700
700
701
+ /**
702
+ * Get the value of a given attribute.
703
+ */
704
+ public function getValue (string $ attribute )
705
+ {
706
+ return Arr::get ($ this ->data , $ attribute );
707
+ }
708
+
709
+ /**
710
+ * Set the value of a given attribute.
711
+ *
712
+ * @param string $attribute
713
+ * @param mixed $value
714
+ */
715
+ public function setValue ($ attribute , $ value )
716
+ {
717
+ Arr::set ($ this ->data , $ attribute , $ value );
718
+ }
719
+
701
720
/**
702
721
* Validate a given attribute against a rule.
703
722
*
@@ -967,14 +986,6 @@ protected function getRule(string $attribute, mixed $rules): ?array
967
986
return null ;
968
987
}
969
988
970
- /**
971
- * Get the value of a given attribute.
972
- */
973
- protected function getValue (string $ attribute )
974
- {
975
- return Arr::get ($ this ->data , $ attribute );
976
- }
977
-
978
989
/**
979
990
* Call a custom validator extension.
980
991
*/
You can’t perform that action at this time.
0 commit comments