laravel尝试超过一张桌子

时间:2016-07-19 07:13:05

标签: php laravel authentication login-attempts

如何使用更多的表来尝试登录?

我尝试了以下设置,但它将更改为使用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,

]);

如何告诉代码绑定表?

0 个答案:

没有答案