Filament panels
See Filament tenancy for panel configuration, examples and access checks.Other Laravel applications
Provide your own tenant resolver when Studio runs outside Filament. Register the resolver in the Laravel container and put its class intenancy.resolver.
CurrentCompany in this example is your application’s existing context
service. It must obtain the active company from authenticated routing or a
validated session. allows() must also work in a queue worker.
With a configured resolver, a missing or unauthorized tenant returns HTTP 404.
Changing the active tenant cannot grant access to another tenant’s workspace,
content, references or upload sessions. The application remains responsible for
its model relationships, tenant selection and workspace memberships.