-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
Helper for global context #487
Comments
Would be great to get such a global helper function. |
Hello, @stancl I tried to implement the following in my code and it was not working $id = 1; This returned null |
Please don't spam the repo and follow the issue templates. |
Apologies |
I suggest adding an helper to run some part of the code in global context. More or less an opposite to the
run()
-Method on tenant model.Example:
There are cases without access to the e.g. model so that I can't add the
CentralConnection
Trait to it. Specifically I have that problem with the cashier-mollie package which does not yet provide a functionality to customize the models (laravel/cashier-mollie#146).I have to run the swap method in global context to work.
The text was updated successfully, but these errors were encountered: