摘要: 框架自带Token认证 1. 需要在用户表加api_token字段 2.路由配置 登录注册等省略,详细参考文档 https://laravelacademy.org/post/9153.html toc_12 3. 配置需要认证的路由 上面需要认证通过,才能拿到用户的Token信息 ['middle 阅读全文
posted @ 2019-07-19 16:11 ncsb 阅读(3132) 评论(0) 推荐(0) 编辑
摘要: 常用 200 302 400 401 404 500 100 = 'Continue', //继续 101 = 'Switching Protocols', //分组交换协议 102 = 'Processing', // RFC2518 200 = 'OK', 201 = 'Created', // 阅读全文
posted @ 2019-07-19 11:45 ncsb 阅读(2705) 评论(0) 推荐(0) 编辑