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 tenant configuration (closes #43) #44

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nsrosenqvist
Copy link

This PR implements an optional tenant configuration as requested in #43. The tests are all passing but I'm a bit unsure how to properly test that the tenant configuration is applied in DatabaseAnalyticsRepository since I didn't want to change the current migration file. The edits the end user will be making to add their tenant field may not be exactly like my use case (eg. could use a different field name or id type), and they may not build for multi-tenancy at all, so I felt it was best to just leave that as optional configuration. If you have any pointers on how this feature would be better implemented @nunomaduro, then I'm all ears!

Note that I also removed the @phpstan-ignore-line statements in DatabaseAnalyticsRepository since they weren't matching actual errors any longer, thereby causing PHPStan errors instead (perhaps changed by an update in larastan).

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

Successfully merging this pull request may close these issues.

1 participant