الصفحات · Laravilt
Tenancy Configuration
Panel tenancy methods, the laravilt-tenancy config file and environment variables.
Panel Configuration
php
Panel Methods
| Method | Description |
|---|---|
tenant(Model, ?relationship, ?slugAttribute) | Enable single-database tenancy |
tenancy(?Model) | Enable tenancy without extra options |
tenantOwnershipRelationship() | Relationship linking records to the tenant |
tenantSlugAttribute() | Attribute used in the tenant URL segment |
tenantRoutePrefix() | Prefix before the tenant segment |
multiDatabaseTenancy(Model, domain) | Enable multi-database tenancy on a base domain |
tenancyMode(), tenantDomain() | Set the mode or domain explicitly |
tenantModels(array) | Models stored in the tenant database |
centralModels(array) | Models stored in the central database |
tenantRegistration() | Enable tenant sign-up |
tenantProfile() | Enable tenant settings |
tenantMenu(), tenantMenuItems() | Tenant switcher and its extra items |
tenantBillingProvider() | Billing integration |
Configuration File
Publish with php artisan vendor:publish --tag=laravilt-tenancy-config to config/laravilt-tenancy.php:
php
Environment Variables
env