Skip to content

Commit 3dbb181

Browse files
authored
Merge pull request #4 from androzd/master
add get validators
2 parents 08efec5 + 686a94d commit 3dbb181

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Form/Element.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ public function setValidators($validators)
137137
return $this;
138138
}
139139

140+
public function getValidators()
141+
{
142+
return $this->validators;
143+
}
144+
140145
public function validate($keys)
141146
{
142147
$values = request($keys);
@@ -168,4 +173,4 @@ public function value()
168173
* @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory
169174
*/
170175
public abstract function view();
171-
}
176+
}

0 commit comments

Comments
 (0)