I am using...
I have application with two authentications API one is customers
and
There is no need to change the providers in config/auth.php
.
You can change the __construct
function in each of your controllers as follows. So that jwt know which model to authenticate.
DriverController
function __construct()
{
Config::set('jwt.user', Driver::class);
Config::set('auth.providers', ['users' => [
'driver' => 'eloquent',
'model' => Driver::class,
]]);
}