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