Hi ,i have a table called companies which hold company information. i am using company model as tenant.
how do i switch tenant connection before login in. my login form has company code input where user submits company code so that i can switch connection to that company before login in. does anyone hava cllue of how to do this with a sampe code ? i am using multiple databases approach for this.