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

multi tenant #55

Closed
matiazar opened this issue Jan 18, 2024 · 3 comments
Closed

multi tenant #55

matiazar opened this issue Jan 18, 2024 · 3 comments

Comments

@matiazar
Copy link

Laravel Settings

v3.3

Laravel Version

v10

Bug description

Hi. can any one tell me if I need to do anything to work with tenants?

thanks in advance

Steps to reproduce

No response

Relevant log output

No response

@matiazar matiazar added the bug Something isn't working label Jan 18, 2024
@rawilk rawilk removed the bug Something isn't working label Jan 21, 2024
@rawilk
Copy link
Owner

rawilk commented Jan 21, 2024

Depends on what you're doing for multi-tenancy. I use spatie's package for multi-tenancy, and I'm using a single database, so I'm making use of the teams feature of this package. Basically, I'm using a "team" as a tenant for my use case.

I have a task that gets run whenever a tenant is made current that sets the team id on the settings service. This is accomplished using settings()->setTeamId($tenantId);

@matiazar
Copy link
Author

yes I used stancl tenant with multi db.. so I didnt need to change anything... thanks!

@rawilk
Copy link
Owner

rawilk commented Mar 10, 2024

I'm going to close this issue since it appears to be working as intended for you. Feel free to re-open in the future if necessary.

@rawilk rawilk closed this as completed Mar 10, 2024
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

2 participants