larave连接mongodb数据库 在$this->auth->attempt 时报错

Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Model\Admin given, called in D:\phpStudy\WWW\chengmi\backend-chengmi-com\vendor\laravel\framework\src\Illuminate\Auth\Guard.php on line 390 and defined
已邀请:

小楼夜雨

赞同来自:

如果连接的 是 mysql 就没有这样的错误,是因为默认的auth系统走的是mysql数据库查询么

要回复问题请先登录注册