首页 > 解决方案 > 来自外部 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);
        }
    }

我究竟做错了什么 ?

标签: phplaravelauthenticationlaravel-5.8

解决方案


推荐阅读