Skip to content

Commit 32bf1d0

Browse files
authored
Add password field to fix #1498
2 parents ae4ce92 + 6d12c54 commit 32bf1d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/Services/CustomFormBuilder.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ public function text($name, $value = null, $options = [])
2121
);
2222
}
2323

24+
public function password($name, $options = [])
25+
{
26+
return new HtmlString(
27+
$this->html->input('password', $name)->attributes($options)
28+
);
29+
}
30+
2431
public function hidden($name, $value = null, $options = [])
2532
{
2633
return new HtmlString(

0 commit comments

Comments
 (0)