Skip to content

Releases: miracuthbert/laravel-multi-tenancy

1.6.3

28 May 10:20
Compare
Choose a tag to compare

Added helper methods tenantMiddlewares and getTenantDriverStoreKey to provide access to tenant middleware and store key

1.6.2

28 May 10:17
Compare
Choose a tag to compare

Merge config defined tenant middleware option with default tenant middleware for use in tenant routes

1.6.1

12 Feb 14:15
Compare
Choose a tag to compare

Re-release of 1.6.0-beta and 1.6.0

1.6.0-beta

12 Feb 13:42
Compare
Choose a tag to compare

Allow Tenant Migrations from Multiple Sources

Tenants can make and run migrations from multiple paths

Changes:

  • Using --feature option with tenancy:model and tenancy:migration you can create a migration under database/migrations/tenant/{feature}
  • Command tenants:migrate can now use --path and --realpath options to run migrations outside the tenant migrations folder

Note: For tenants:rollback command, --path and --realpath will work with only when a filename is specified

1.6.0

12 Feb 14:02
Compare
Choose a tag to compare

Added missing MigrationHelperTrait

1.5.4

09 Feb 23:54
Compare
Choose a tag to compare

Updated internal package routes registration to check if package is running in subdomain and prevent them being called under subdomains

1.5.3

09 Feb 22:33
Compare
Choose a tag to compare

Subdomain Routing Fully Supported

  • Updated and finalized subdomain switching to be handled within the package via tenant.switch route
  • Added route key under redirect options in tenancy config to be used for subdomain routing

Note: Subdomain routing will work with package tenant.switch route if route key is assigned a value
or else it will try to fallback to the default switch method which will throw a 404 since routes/tenant.php
is running in subdomain mode.

1.5.2

07 Feb 16:37
Compare
Choose a tag to compare

Fixed domain route group registration key to match config defined value for subdomain_request_key

1.5.1

07 Feb 16:17
Compare
Choose a tag to compare

Subdomain Routing Enhancement

Briefly: Updated parameter binding and tenant identification when subdomain routing is being used

  • Updated SetTenant middleware to resolve tenant and parameter binding when subdomain is enabled
  • Added subdomain_request_key and subdomain_key in config file; to pick subdomain url and resolve tenant model
  • Added a route binding for the value of subdomain_request_key, in packages RouteServiceProvider boot method
  • Updated resolveTenant method in Tenancy file to resolve tenant when subdomain routing is enabled

1.5.0

07 Feb 10:42
Compare
Choose a tag to compare

Updated handling of subdomain routing to be done within the package