php - 来自外部 api 用户的 Laravel Auth
问题描述
我正在关注这个stackOverflow 帖子,我正在使用laravel 5.8.38
. 我做了这里建议的一切,但我收到错误,
Call to undefined method App\Auth\ApiUserProvider::check()
上,
供应商/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php
foreach ($guards as $guard) {
if ($this->auth->guard($guard)->check()) {
return $this->auth->shouldUse($guard);
}
}
我究竟做错了什么 ?
解决方案
推荐阅读
- android - DJI 应用程序错误(没有找到 dex 位置的原始 dex 文件)
- java - Mysql 到 Cassandra java 空指针异常
- python - 高斯噪声没有覆盖主图像-Python
- excel - 当消息框显示在顶部时,如何让用户在 Excel 工作表上工作?
- graphql - 如果定义了片段,如何测试 GraphQL 查询?
- kubernetes - 通过代理 ssh 到另一个虚拟机时如何访问 kubernetes 集群中的服务?
- visual-studio-2017 - 如何在项目属性中启用包控件
- mysql - 分组连接不同的行
- qt - QML DelegateModel:从委托访问 DelegateModel
- oracle - 如何恢复对 Oracle 视图的所有调用