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

Add team support #28

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Add team support #28

merged 1 commit into from
Sep 27, 2023

Conversation

rawilk
Copy link
Owner

@rawilk rawilk commented Sep 27, 2023

PR adds support for teams/multi-tenancy by adding a team_id (customizable) to the settings table. The Database and Eloquent drivers will support this when it is enabled in the config. This allows you to use the same settings key for different teams/tenants.

This could be achieved already by setting a "team_id" in the context object for each setting call, however that would become tedious to do. Now the "team_id" can just be set once either in a service provider or in a middleware by calling the setTeamId() method on the Settings facade.

There are some breaking changes introduced with this PR, however I will address those in an upgrade guide and a new major version.

@rawilk rawilk added enhancement New feature or request breaking change PR introduces breaking changes labels Sep 27, 2023
@rawilk rawilk changed the base branch from main to v3.x September 27, 2023 17:20
@rawilk rawilk merged commit f1babf5 into v3.x Sep 27, 2023
4 of 22 checks passed
@rawilk rawilk deleted the feature/tenancy branch September 27, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change PR introduces breaking changes enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant