Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的用户可以使用社交选项(Facebook、Twitter)登录,所以我不使用该Auth::attempt()方法,但Auth::login().
Auth::attempt()
Auth::login()
我怎样才能记住我的用户,这样他们就不必每次重新启动浏览器时都登录?
它不在文档中,但是如果您查看代码;
public function login(UserInterface $user, $remember = false)
所以就这样做
Auth::login($user, true);