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
Starting with Filament 4, there is automated scoping of models to tenant. Thats in general fine. In my setup, i have a case where i load multiple entities from different tentants but with relation to tentant info.
I did this by $events = Event::query()->whereIn('organization_id', $organization_ids)->get() so $event->organization has the attached tenant information.
Now with Filament 4 i need to add ->withoutGlobalScopes() to get all Events but now organization is missing as its not scoped.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Other
Package Version
v4.1.4
How can we help you?
Starting with Filament 4, there is automated scoping of models to tenant. Thats in general fine. In my setup, i have a case where i load multiple entities from different tentants but with relation to tentant info.
I did this by
$events = Event::query()->whereIn('organization_id', $organization_ids)->get()
so $event->organization has the attached tenant information.Now with Filament 4 i need to add
->withoutGlobalScopes()
to get all Events but now organization is missing as its not scoped.How can i get this working with filament 4?
Beta Was this translation helpful? Give feedback.
All reactions