Releases: miracuthbert/laravel-multi-tenancy
1.6.3
Added helper methods tenantMiddlewares and getTenantDriverStoreKey to provide access to tenant middleware and store key
1.6.2
Merge config defined tenant middleware option with default tenant middleware for use in tenant routes
1.6.1
Re-release of 1.6.0-beta
and 1.6.0
1.6.0-beta
Allow Tenant Migrations from Multiple Sources
Tenants can make and run migrations from multiple paths
Changes:
- Using
--feature
option withtenancy:model
andtenancy:migration
you can create a migration underdatabase/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
Added missing MigrationHelperTrait
1.5.4
Updated internal package routes registration to check if package is running in subdomain and prevent them being called under subdomains
1.5.3
Subdomain Routing Fully Supported
- Updated and finalized subdomain switching to be handled within the package via
tenant.switch
route - Added
route
key underredirect
options intenancy
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
Fixed domain route group registration key to match config defined value for subdomain_request_key
1.5.1
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
andsubdomain_key
in config file; to pick subdomain url and resolve tenant model - Added a route binding for the value of
subdomain_request_key
, in packagesRouteServiceProvider
boot
method - Updated
resolveTenant
method inTenancy
file to resolve tenant when subdomain routing is enabled
1.5.0
Updated handling of subdomain routing to be done within the package