After larave has passed the adldap2-laravel authentication, jump back to the login page

1. Problem description:
laravel uses ldap for authentication, does not use database, uses Adldap2-Laravel package
according to Laravel/blob/master/docs/auth.md-sharpinstallation" rel=" nofollow noreferrer "> method set here method, overrides the login method in LoginController, as follows

if (Auth::attempt($request->only(["uid", "password"]))) {
    $user = Auth::user();
      return redirect()->to("/home")
        ->withMessage("Logged in!");
}

return redirect()->to("login")
   ->withMessage("Hmm... Your username or password is incorrect");

after I enter the account password in ldap, I execute dd (Auth::attempt ($request- > only ([uid", "password"]) page returns True,. I think I should jump to / home page, the page does jump 302, but immediately jump to login page, I guess there is no valid session, generated, so laravel thinks that you did not log in successfully, and
Google has not solved it for a long time, so I would like to ask, what should I do? Thank you

Mar.02,2021
Menu