api.php 里面的路由,走中间件的时候提示未授权 401?
我们这个项目进行了半年了,以前没问题,上周六开始所有接口就提示401未授权  

详细信息
```
  "exceptions": {
    "count": 1,
    "exceptions": [
      {
        "type": "Illuminate\\Auth\\AuthenticationException",
        "message": "Unauthenticated.",
        "code": 0,
        "file": "D:\\jeff\\code\\jianwen\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\Middleware\\Authenticate.php",
        "line": 66,
        "surrounding_lines": [
          "            }\n",
          "        }\n",
          "\n",
          "        throw new AuthenticationException('Unauthenticated.', $guards);\n",
          "    }\n",
          "}\n"
        ],
        "xdebug_link": null
      }
    ]
  },
```
    
                                                            
            
4 Comments
检查下是不是哪里应用了auth中间件 或者请求类验证权限的返回了false
你好,就是用的auth中间件,不过我把接口全部取消了中间件之后,请求还是那样。。
我发现。。。不是请求中间件里的接口401 是任何请求都是401,,
看下是不是在入口的地方使用这个中间件 RouteServiceProvider 和 HTTP/Kernel 的
api中间件组都检查下