Configuration
tenant()
Signature
Section titled “Signature”tenant() — returns struct
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: Multi-Tenancy
Description
Section titled “Description”Returns the current tenant struct, or an empty struct if no tenant is active.
The tenant struct contains: id, dataSource, config, and $locked.