如何使用更多的表来尝试登录?
我尝试了以下设置,但它将更改为使用Admin :: class,并且User :: class尝试将立即失败。
应用/配置
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => FACI\Entities\User::class,
'model' => FACI\Entities\Admin::class,
],
]
这是我的尝试
$attempt = \Auth::attempt([
'name' => $this->request->name,
'password' => $this->request->password,
]);
如何告诉代码绑定表?