-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Contract IsTenant replace Tenant uses #544
Conversation
…avel-multitenancy into refactoring-interface
@freekmurze, I'm ready for your verification. I'm in love with these changes. |
Looks good! Maybe also drop support for Laravel 10 and provide upgrade instructions in Thanks for your work on this. |
I'm ready. Can I merge? |
Do you have other breaking changes in mind? Now would be the time to implement those too. |
I think not. I changed a few things in the tests, so apart from what I mentioned in the upgrade guide, it currently seems that there are no other breaking changes. |
A possible idea could be to use the |
I think using the new context feature could be a really great idea especially since you are dropping Laravel 10 support and releasing a new major version. I remember coming upon this tweet shortly after context was released. Maybe it can provide inspiration? https://twitter.com/davidhemphill/status/1770893521748123683 Thanks @davidhemphill |
I have made some test using context, but when you make a tenant as current and then call We can reduce our code, but we should remove our @freekmurze: What is your opinion about that? |
Using context seems like the way to go. Let's make the context key,
That's no problem I think
I don't understand why this should be removed, could you give some more details on that? |
Ready again for review? |
Yes |
It all looks very good, thanks for your work on this! |
PR follows the discussion here: #543