1

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?

Fan
  • 1,124
  • 3
  • 17
  • 35
  • 1
    Possible duplicate of [How to use authentication for multiple tables in Laravel 5](http://stackoverflow.com/questions/29192535/how-to-use-authentication-for-multiple-tables-in-laravel-5) – Ohgodwhy Jul 19 '16 at 07:49

0 Answers0