Optional features

"Features" are classes that provide additional functionality that's not needed for the core tenancy logic. Out of the box, the package comes with these Features:

  • UserImpersonation for generating impersonation tokens for users of a tenant's DB from other contexts
  • TelescopeTags for adding tags with the current tenant id to Telescope entries
  • TenantConfig for mapping keys from the tenant storage into the application config
  • CrossDomainRedirect for adding a domain() macro on RedirectResponse letting you change the intended hostname of the generated route
  • UniversalRoutes for route actions that work in both the central & tenant context All of the package's Features are in the Stancl\Tenancy\Features namespace.

You may register features by adding their class names to the tenancy.features config.