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:
UserImpersonationfor generating impersonation tokens for users of a tenant's DB from other contextsTelescopeTagsfor adding tags with the current tenant id to Telescope entriesTenantConfigfor mapping keys from the tenant storage into the application configCrossDomainRedirectfor adding adomain()macro onRedirectResponseletting you change the intended hostname of the generated routeUniversalRoutesfor route actions that work in both the central & tenant contextViteBundlerfor making Vite generate the correct asset paths
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.