Skip to content

Releases: miracuthbert/laravel-multi-tenancy

1.4.0

03 Feb 22:44
Compare
Choose a tag to compare

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

19 Jan 09:28
Compare
Choose a tag to compare

Updated tenant switching functionality to also handle db stored tenant session value

1.3.3

19 Jan 09:26
Compare
Choose a tag to compare

Update to migration stub files to fix missing semicolon

1.3.2

18 Jan 07:15
Compare
Choose a tag to compare

Updated model and migration stub files to prevent name conflicts

1.3.1

17 Jan 11:48
Compare
Choose a tag to compare

Fixed conflicting options in Seed command

1.3.0

16 Dec 22:51
Compare
Choose a tag to compare

Added db option for tracking the request user's active tenant

1.2.1

16 Dec 22:49
Compare
Choose a tag to compare

Added option in config to append custom middleware to tenant routes after tenant middleware

1.2.0

21 Jan 23:01
Compare
Choose a tag to compare

Update dependencies to prep for Laravel 9 and PHP 8

1.1.4

19 Jun 00:21
Compare
Choose a tag to compare

Refactored migration creation functionality to re-enable creating migration files

1.1.3

12 Jun 01:39
Compare
Choose a tag to compare

Refactor custom migration creator to fix custom stub path