Skip to content

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