multiple authentication login error
<p>i am doing multi authentication 
my front end has a login form with cardno and password.
in auth.php</p>

<pre><code>return [
        'multi' =&gt; [
            'users' =&gt; [
                'driver' =&gt; 'eloquent',
                'model'  =&gt; App\User::class,
                'table'  =&gt; 'users'
            ],
            'frontendUsers' =&gt; [
                'driver' =&gt; 'eloquent',
                'model'  =&gt; App\loginModel::class,
                'table'  =&gt; 'frontend_users'
            ]
         ],
         'password' =&gt; [
                'email' =&gt; 'emails.password',
                'table' =&gt; 'password_resets',
                'expire' =&gt; 60,
            ],
        ];
</code></pre>

<p>in route.php</p>

<pre><code>Route::post('login','auth\loginController@postLogin');
</code></pre>

<p>in logincontroller,</p>

<pre><code>public function postLogin(Request $request){
....
    // attempt to do the login
    if (\Auth::attempt('frontendUsers', ['cardno' =&gt; '111111', 'password' =&gt; '999087787'])) {
           echo "login";
    }
    else {
            echo "failed";
    }
}
</code></pre>

<p>in loginModel.php</p>

<pre><code>&lt;?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
class loginModel extends Model {

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table    = 'frontend_users';
    //public $timestamps    = false;

 }
</code></pre>

<p>when i try to log in i get this error</p>

<blockquote>
  <p>ErrorException in EloquentUserProvider.php line 110: Argument 1 passed
  to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be
  an instance of Illuminate\Contracts\Auth\Authenticatable, instance of
  App\loginModel given, called in
  C:\xampp\htdocs\elitecard\vendor\laravel\framework\src\Illuminate\Auth\Guard.php
  on line 390 and defined</p>
</blockquote>