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

Feature tenant aware Refactored #32

Merged
merged 4 commits into from
Mar 10, 2024
Merged

Conversation

eelco2k
Copy link

@eelco2k eelco2k commented Mar 8, 2024

Sorry i did not see that you wanted to merge into dev branch.

I took some more time to refactor tenancy feature. And added your changes as well. (removed a typo in awereness... etc.)

Now a lot of settings will be retreived from the Resource, like $tenantOwnershipRelationshipName, $tenantRelationshipName and $isScopedToTenant. So some configs are removed. It also looks how the tenancy relation is, for example via a Morph or BelongsTo relation. I haven't tested the Morph relation though.

I now also have used the Handler to filter via the QueryBuilder instead of scoping the Model via the boot method in the model.

@rupadana rupadana changed the base branch from feature-tenantAware to dev March 8, 2024 23:56
@rupadana rupadana merged commit 8fe4c32 into rupadana:dev Mar 10, 2024
2 checks passed
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.

2 participants