Answer the question
In order to leave comments, you need to log in
What is the correct way in Laravel to recover a password through a phone number?
Good afternoon,
I want to provide the ability to recover a password not only through emai, as out of the box. but also through a phone number.
ForgotPasswordController has an entry:
$response = $this->broker()->sendResetLink(
$request->only('email')
);
public function broker()
{
return Password::broker();
}
$response = $this->broker()->sendResetLink(
$request->only('email')
);
$response = $this->broker()->sendResetLink(
$request->only('phone')
);
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question