511 B
511 B
Plan — 071 Workspace-scoped tenant selection
Tech
- Laravel 12
- Filament v5 + Livewire v4
Approach
- Update the Filament tenant provider on
User(getTenants()andgetDefaultTenant()) to optionally filter by the current workspace id fromWorkspaceContext. - Add a feature test asserting
/admin/choose-tenantonly shows tenants from the selected workspace. - Run Pint and targeted tests.
Files
app/Models/User.phptests/Feature/Filament/ChooseTenantIsWorkspaceScopedTest.php