要手动把用户从应用中退出登录,你可以使用 Auth facade 上的 logout 方法。这将清除用户会话中的身份认证信息:
Auth
logout
use Illuminate\Support\Facades\Auth; Auth::logout();
我要举报该,理由是:
推荐文章: