every users when they went to register our website and they are typing username
or email
, we want to check real time which username
or password
exists in our database or not. for implementing this feature i have this input
element in blade
:
<input type="text" class="form-control"
wire:model.lazy="username"
value="{{old('username')}}">
as i'm not sure this implementation is correct i don't have any method on component
.
for example:
public function username($username){
echo "Hey {$username} !";
}
i want to know how we can fire method when we type into input
element
updatedUsername()
will be called – ZeroOne