In this question there are the following answers of this question but i give the best answer of this question.
function myFunction() {
var data = document.getElementById("myInput");
if (data.type === "password") {
data.type = "text";
} else {
data.type = "password";
}
}
<div class="form-group col-md-6">
<label class="control-label">Password</label>
<input type="Password" name="password password1" id="myInput" class="form-control eye" value="{{old('password')}}">
<i class="fa fa-eye" aria-hidden="true" onclick="myFunction()"> Show Hide</i> {!! $errors->first('password', '<p class="text-warning errorBag">:message</p>') !!}
</div>
Share my answer please