Spatie multitenancy package-Laravel
Multitenancy is a way of arranging software so that a single instance runs as if it were multiple instances or installations. It is a topic that has very much importance in web development. It can support multiple clients with same code by keeping data separately in table prefixes or databases. A multitenancy package should have the following abilities. It should track which tenant is the current tenant. Dynamically change the configuration when changing a tenant. It should have tools to help creating new tenant database and running migrations on multiple tenants. The core of the spatie package is Tenant model it shows the available tenants. After installing the package you have the database which contains tenants of the application. For finding tenants you have DomainTenantFinder class. If you want to make a custom finder by extending abstract TenantFinder class. In spatie by default all queue jobs are tenant aware you can also disable it through configuration.
Comments
0 comments
Please Sign in or Create an account to Post Comments