Single db with separate schema per tenant possible? #606
Replies: 1 comment
-
|
Hi @adampotocki i'm tryin' to do something like that now, and i'm struggling around the switching schema function instead switching database. My database config for tenant has search path set to null My database config for landlord has search path set to public my default config is set to landlord in .env file and in multitenancy config i set: i'm using Kinde for spa authentication so I don't need session nor domain to find the current tenant, i switch it by validate and parse the jwt token sent me from the front end application. For now, i have some issues with SwitchTenantPgSchemaTask::class It seems that changing schema is not working somehow. Keep investigating... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm exploring a use case for path based tenancy on same domain/subdomain with a single postgres db with a landlord schema for users/roles/permissions and separate db schema per tenant for model tables.
How would this be done using spatie\laravel-multitenancy? Any issues with SSO and session management? Your experience positive/negatives would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions