public getEmailForPasswordToken ( $token ) : mixed | ||
$token | ||
Résultat | mixed |
public function getEmailForPasswordToken($token)
{
if ($row = DB::table('password_resets')->where('token', $token)->first()) {
return $row->email;
}
throw new GeneralException(trans('auth.unknown'));
}
/** * Display the password reset view for the given token. * * If no token is present, display the link request form. * * @param string|null $token * @return \Illuminate\Http\Response */ public function showResetForm($token = null) { return view('frontend.auth.passwords.reset')->withToken($token)->withEmail($this->user->getEmailForPasswordToken($token)); }