You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking for some help around using webhooks in a single DB setup. I have a global scope on my models, so when a webhook comes in that has no context of what a tenant is and I attempt to load a model that has the scope, it obviously fails as theres no tenant set.
I'm aware of using the Model::withoutGlobalScope() method, but this doesn't seem very clean as Ill end up using this in quite a few places.
What are you thoughts on this situation as I can see it arising a lot?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
Looking for some help around using webhooks in a single DB setup. I have a global scope on my models, so when a webhook comes in that has no context of what a tenant is and I attempt to load a model that has the scope, it obviously fails as theres no tenant set.
I'm aware of using the Model::withoutGlobalScope() method, but this doesn't seem very clean as Ill end up using this in quite a few places.
What are you thoughts on this situation as I can see it arising a lot?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions