Jwt with multiple model

You can create a separate middleware like AuthModel. In that you can set the config to take which providers like the below,

Config::set('auth.providers.users.model',\App\Models\Customer::class);

If you want to use multiple models, then need to use if conditions to check which url can access which models. It can be like,

if(url == '/customer/api/') {
 Config::set('auth.providers.users.model',\App\Models\Customer::class);
} else if(url == '/biker/api/') {
 Config::set('auth.providers.users.model',\App\Models\Biker::class);
}

In the above example, I have used url just for example, so get it from the request.