Skip to content

Model Configuration

sharedModel()

sharedModel() — returns void

Available in: model Category: Multi-Tenancy

Marks this model as shared — it will always use the default application datasource even when a tenant is active. Use this for models like Tenant, Plan, or any lookup table that lives in the central database rather than per-tenant databases.