Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JProg's avatar
Level 1

Login user from central domain and redirect to his subdomain

I am trying to apply multitenancy to my app using the library stancl/tenancy, everything works fine except the login, i used laravel breeze with vue as a base. Every subdomain has it's own session and database, when a user is logged the application checks all tenants'(each subdomain has a tenant) dbs, if the credentials are found the user is stored at the session using Auth::login, the problem is that i don't know how to access the subdomain session to save the user there, the only session i have access is the one of the current subdomain. ¿How do i save the user in his subdomain's session from the central domain? I read through all the laravel tenancy's documentation and found nothing about that

0 likes
0 replies

Please or to participate in this conversation.