在登录的时候,检测是否激活的时候,我这里出现这种错误,
这是什么问题啊?
这是代码
dd(auth('api')->attempt(['username' => $username, 'password' => \request('password')]));
$request = $this->proxy->proxy('password', [
'username' => $request->get('username'),
'password' => $request->get('password'),
'scope' => ''
]);
return $request;
这是auth.php中的guards代码
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'passport',
'provider' => 'admins',
]
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
'admins' => [
'driver' => 'eloquent',
'model' => App\Models\Admins::class,
]
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],