The idea is this:
There are 2 sites on laravel. When authorizing on 1 site, first there is a search for account data in the database of this site, if not, then go to base 2 of the site and look for them there. And similarly with site 2 (First we search in the base of this site, if not go to the base 1 of the site and look there)
In fact, you just need to connect 2 base from 2 sites. The question of how to do this and how to continue to work with this database
Sites and databases are on the same server