Skip to content

Releases: miracuthbert/laravel-multi-tenancy

1.11.2

03 Jan 10:15
Compare
Choose a tag to compare

Fix Undefined constant "STDIN" error caused when SetUpTenantDatabase listener is called in production apps.

1.11.1

09 Oct 15:48
Compare
Choose a tag to compare

Add check to get redirect url from request; if redirect_url is present in query string

1.11.0

17 Sep 11:15
Compare
Choose a tag to compare

Allow custom user defined tenant middleware groups; allowing multiple values in config/tenancy.php under routes.middleware.groups

1.10.1

17 Sep 11:10
Compare
Choose a tag to compare

Update resolveTenant method to check if passed value is instance of tenant model as defined in config

1.10.0

07 Sep 16:42
Compare
Choose a tag to compare
  • Added check to allow user defined redirect route and associated params to be pulled from request; using keys redirect_to and redirect_params

1.9.0

19 Jun 14:15
Compare
Choose a tag to compare

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 in Manager
  • Added runNonTenantTask method to enable running of non-tenant tasks in the middle of tenant tasks before resuming with tenant tasks

1.8.1

19 Jun 14:07
Compare
Choose a tag to compare

Add clearTenant method to unset the tenant from Manager

1.8.0

19 Jun 14:02
Compare
Choose a tag to compare

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

28 May 13:17
Compare
Choose a tag to compare
  • 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

28 May 12:00
Compare
Choose a tag to compare

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)