Laravel has the concept of guards, what you are trying can be accomplish with using custom guards for the "other table". You can check here https://laravel.com/docs/7.x/authentication#adding-custom-guards
and here's a good resource to get started https://lavalite.org/blog/multiple-authentication-in-laravel