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 contextsTelescopeTags
for adding tags with the current tenant id to Telescope entriesTenantConfig
for mapping keys from the tenant storage into the application configCrossDomainRedirect
for adding adomain()
macro onRedirectResponse
letting you change the intended hostname of the generated routeUniversalRoutes
for route actions that work in both the central & tenant contextViteBundler
for 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.