multi-tenant: It doesn't filter everwhere
I'm a newbie at Filament, but have the basic many-to-many relations in my tables working and in the UI.
Now I've added multi-tenant, and have it working in the UI for my Resources by including this in the top of each Resource Class:
This works well when I am into the UI for reach Resource, but when I am on the default Admin page and have added widgets with this code, it seems to ignore the multi-tenant filter. Or maybe I need to add a Global Scope to filter it? This is the code that is not filtering (eg. shows all records) - any clues?:
Now I've added multi-tenant, and have it working in the UI for my Resources by including this in the top of each Resource Class:
protected static ?string $tenantOwnershipRelationshipName = 'team';.This works well when I am into the UI for reach Resource, but when I am on the default Admin page and have added widgets with this code, it seems to ignore the multi-tenant filter. Or maybe I need to add a Global Scope to filter it? This is the code that is not filtering (eg. shows all records) - any clues?: