Seiten · Laravilt
Tenancy Configuration
Configure multi-tenancy settings
Panel Configuration
php
Configuration File
config/laravilt-tenancy.php:
php
Environment Variables
env
Panel Methods
| Method | Description |
|---|---|
tenant(Model, ?relationship, ?slug) | Single-database tenancy |
multiDatabaseTenancy(Model, domain) | Multi-database tenancy |
tenantModels(array) | Models using tenant database |
centralModels(array) | Models using central database |
tenantRegistration() | Enable tenant signup |
tenantProfile() | Enable team settings |
tenantMenu() | Show tenant switcher |
Next Steps
- Models - Tenant and Domain models
- Middleware - Tenancy middleware
- Best Practices - Tips and troubleshooting