Releases: miracuthbert/laravel-multi-tenancy
1.4.0
Added guard
argument to tenant middleware arguments, to allow different levels of auth access
Note: Currently only guest
guard is supported to allow non-tenants to access parts of tenant routes when set
Usage:
This feature is practical when combined with APIs
, passing a tenant id
or uuid
to header X-Tenancy-Tenant
.
Note: You must also enable in_header
option under routes
middleware in tenancy
config.
Route::middleware('tenant:guest')->get('posts', PostController::class)->name('posts.index');
Route above will get allow access to tenant posts but it will not require a user to be under a tenant
1.3.4
Updated tenant switching functionality to also handle db stored tenant session value
1.3.3
Update to migration stub files to fix missing semicolon
1.3.2
Updated model and migration stub files to prevent name conflicts
1.3.1
Fixed conflicting options in Seed
command
1.3.0
Added db
option for tracking the request user's active tenant
1.2.1
Added option in config to append custom middleware to tenant routes
after tenant
middleware
1.2.0
Update dependencies to prep for Laravel 9
and PHP 8
1.1.4
Refactored migration creation functionality to re-enable creating migration files
1.1.3
Refactor custom migration creator to fix custom stub path