Skip to content

Configuration

tenant()

tenant() — returns struct

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: Multi-Tenancy

Returns the current tenant struct, or an empty struct if no tenant is active. The tenant struct contains: id, dataSource, config, and $locked.