Releases: miracuthbert/laravel-multi-tenancy
1.11.2
1.11.1
Add check to get redirect url from request; if redirect_url
is present in query string
1.11.0
Allow custom user defined tenant middleware groups; allowing multiple values in config/tenancy.php
under routes.middleware.groups
1.10.1
Update resolveTenant
method to check if passed value
is instance of tenant model as defined in config
1.10.0
- Added check to allow user defined redirect route and associated params to be pulled from request; using keys
redirect_to
andredirect_params
1.9.0
Enable non-tenant tasks to be run in the middle of tenant tasks
Changes to Tenancy
class:
- Added
setTenant
method to provide a quick way to set a tenant inManager
- Added
runNonTenantTask
method to enable running of non-tenant tasks in the middle of tenant tasks before resuming with tenant tasks
1.8.1
Add clearTenant
method to unset the tenant from Manager
1.8.0
Add check to determine if tenant is set in Manager
before resolving the database connection name for a Model using ForTenants
trait via MultiDatabaseDriver
driver
This enables a single model to be used for tenant based logic and non-tenant based logic
1.7.1
- Refactored resolveTenant method to factor in non-subdomain based route check
- Updated resolveTenant implementation in SetTenant middleware to factor in the changes
1.7.0
Enable non-tenant subdomains to use tenant middleware alongside the package's subdomain feature;
The tenant is resolved from the store defined in config (ie, cookie, cache, session, DB)