You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I just started using laravel-multitenancy and it's exactly what I needed. But the app that I'm currently working on is on a single domain, with multiple different databases for each tenant.
The default tenant finder checks the tenant based on host, while I needed it to check tenant based on session since all the databases will be on a single domain. I tried making a custom finder, but the findForRequest function cannot get the current auth nor current sessions.
Is there a way for the finder to be able to get session values or am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I just started using laravel-multitenancy and it's exactly what I needed. But the app that I'm currently working on is on a single domain, with multiple different databases for each tenant.
The default tenant finder checks the tenant based on host, while I needed it to check tenant based on session since all the databases will be on a single domain. I tried making a custom finder, but the findForRequest function cannot get the current auth nor current sessions.
Is there a way for the finder to be able to get session values or am I missing something?
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions