5.4 中 Auth::guard ('API')->user () 和 Auth::user () 有什么区别?
Auth::user() 不是可以获取当前登录用户的信息,为什么有时候返回空,非得写成Auth::guard('api')->user()
推荐文章: