Update FormBuilder.php

Make she the value is passed to password input.
This commit is contained in:
Shao Hao 2020-03-03 14:11:51 +08:00 committed by GitHub
parent c058e1a452
commit e857023903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,9 +331,9 @@ class FormBuilder
* *
* @return \Illuminate\Support\HtmlString * @return \Illuminate\Support\HtmlString
*/ */
public function password($name, $options = []) public function password($name, $value = null, $options = [])
{ {
return $this->input('password', $name, '', $options); return $this->input('password', $name, $value, $options);
} }
/** /**