我有一个laravel 9应用程序,我正在使用laravel附带的身份验证。然而,当我向用户发送类似的链接时
http://127.0.0.1:8000/password/reset/320dd955509c9a236f122a700eec80f0daf18ebdef27770f3d2641ea55d74359?email=admin%40example.com
我想注销用户并将用户重定向到登录页面。如何注销用户?
我希望这能帮助你
use IlluminateSupportFacadesAuth;
.....
Auth::logout();
return redirect()->route('login);
或
return redirect()->route('somewhere);