Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where can i store my configuration ? #49

Closed
ojha007 opened this issue Jun 16, 2020 · 1 comment
Closed

where can i store my configuration ? #49

ojha007 opened this issue Jun 16, 2020 · 1 comment

Comments

@ojha007
Copy link

ojha007 commented Jun 16, 2020

i got stuck in a suiation where i need set different configuration to different tenant
so where can i keep those configuration . should i add colum on tenants table or make new table on landlord db.

@masterix21
Copy link
Collaborator

masterix21 commented Jun 16, 2020

There are a lot of ways to solve your problem, but the solution depends on your approach. All your ideas are valid but aren't dependents by the Spatie package.

You can use a Config model in the tenant database, or you can write storage/tenants/{your-tenant-id}/config.php. Make your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants