How can I use more the one table to attempt login ?
I tried following setting, but it will change to use Admin::class, and the User::class attempt will fail immediately.
app/config
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => FACI\Entities\User::class,
'model' => FACI\Entities\Admin::class,
],
]
this is my attempt
$attempt = \Auth::attempt([
'name' => $this->request->name,
'password' => $this->request->password,
]);
How to told the code to binding the table?