NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1279 most downloaded on Packagist
Make your Laravel app usable by multiple tenants
Latest stable
4.3.1
Last release 18 days ago
04 Nov 2026
Release timing varies
gaps range from 9 days to 5 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
73 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Avoid deserializing ordinary queued jobs merely to determine tenant awareness. This removes redundant model-restoration queries and lets Laravel honor
deleteWhenMissingModels, including for encrypted jobs.queueable_to_job property/method targets instead of inferring their identity from displayName.MakeQueueTenantAwareAction class with a resolvable payload class name.new.static warnings.Thanks to @stevethomas for the original contribution and @maxrice for the missing-model reproduction in #653.
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.3.0...4.3.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add opt-in --continue-on-error to tenants:artisan. Custom commands using TenantAware can opt in by adding {--continue-on-error} to their signature.
--continue-on-error to tenants:artisan. Custom commands using TenantAware can opt in by adding {--continue-on-error} to their signature.1 if any selected tenant throws or returns a nonzero exit code, avoiding OS exit-status wraparound and cancellation by custom exit codes. Return status 0 when all selected tenants succeed.TenantsArtisanCommand::handle(): void subclass compatibility, and all 4.2.3 inner-command exit-status fixes.Thanks to @benddailey for the feature in #652.
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.2.3...4.3.0
Return exit status 1 from tenants:artisan when any selected tenant command returns a nonzero exit code, while continuing to process the remaining tena
tenants:artisan when any selected tenant command returns a nonzero exit code, while continuing to process the remaining tenants.handle(): void.Inner command failures were previously ignored. Deploy pipelines and scheduler failure hooks will now detect them. Successful commands, an empty tenant list with no explicit selection, and tenant selection behavior remain unchanged. Exceptions still stop the run; no exception-handling behavior was changed. PHP 8.3–8.5 and Laravel 12–13 remain supported.
Thanks to @benddailey for the original fix in #651.
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.2.2...4.2.3
Restore landlord routes after tenant requests and operations in long-running workers, including uncached landlord routes.
Thanks to @masterix21 for the original fixes in #650.
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.2.1...4.2.2
Fix documentation link in README by @flavius-constantin in https://github.com/spatie/laravel-multitenancy/pull/649
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.2.0...4.2.1
Processing a job no longer leaves the surrounding code with a different current tenant than it had before (#639, #643).
Processing a job no longer leaves the surrounding code with a different current tenant than it had before (#639, #643).
On the sync connection and through dispatchSync(), a job runs inside the request that dispatched it. A job that is not tenant aware forgot the current tenant and never put it back, so the rest of the request continued without one. A tenant aware job for another tenant left that other tenant current. Whatever tenant was current before a job starts is now restored when it finishes, on both the success and the failure path, and nested sync dispatches restore per level.
queue:retry behaves the same way. It needs the tenant of a failed job while it pushes that job back onto the queue, but the tenant of the code that ran the command is restored once it finishes. This matters when retrying jobs from a request with Artisan::call('queue:retry').
Behaviour worth knowing about when upgrading: on a queue worker the tenant of a processed job no longer stays current after that job finishes. Every job binds its own tenant, so jobs are unaffected, but code reading Tenant::current() in between jobs now sees no tenant. Listeners that are part of processing a job, Queue::after() and JobFailed for instance, still see the tenant of the job they are handling.
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.1.5...4.2.0
Fix tenant id retrival during job retry by @gazben in https://github.com/spatie/laravel-multitenancy/pull/642
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.1.4...4.1.5
Support legacy queue payloads in tenant-awareness detection by @ragulka in https://github.com/spatie/laravel-multitenancy/pull/640
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.1.3...4.1.4
Resolve tenant from payload context when retrying jobs by @freekmurze in https://github.com/spatie/laravel-multitenancy/pull/638
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.1.2...4.1.3
Add Laravel Boost skill by @victoryoalli in https://github.com/spatie/laravel-multitenancy/pull/635
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.1.1...4.1.2
Add description to TenantsArtisanCommand by @dac514 in https://github.com/spatie/laravel-multitenancy/pull/633
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.1.0...4.1.1
Nothing published for this version
Fix #617: Add default value for TasksCollection constructor parameter by @freekmurze in https://github.com/spatie/laravel-multitenancy/pull/625
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.8...4.0.9
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
execute() by @moisish in https://github.com/spatie/laravel-multitenancy/pull/622$latestResponse error on prefer-lowestFull Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.7...4.0.8
Fix syntax for tenant aware interface config by @danharrin in https://github.com/spatie/laravel-multitenancy/pull/608
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.6...4.0.7
Command state persistence with TenantAware by @SethSharp in https://github.com/spatie/laravel-multitenancy/pull/602
TenantAware by @SethSharp in https://github.com/spatie/laravel-multitenancy/pull/602TenantAware and NotTenantAware interfaces by @przemyslaw-przylucki in https://github.com/spatie/laravel-multitenancy/pull/607Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.5...4.0.6
Update using-multiple-databases.md by @najbo in https://github.com/spatie/laravel-multitenancy/pull/584
ShouldBeEncrypted need to be decrypted by @Joel-Jensen in https://github.com/spatie/laravel-multitenancy/pull/588Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.4...4.0.5
Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-multitenancy/pull/580
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.3...4.0.4
Docs: Fix formatting in interface code block by @inmanturbo in https://github.com/spatie/laravel-multitenancy/pull/560
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.2...4.0.3
Update using-a-custom-tenant-model.md by @thoresuenert in https://github.com/spatie/laravel-multitenancy/pull/553
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.1...4.0.2
Fix NotTenantAware notifications, mailables, closures, listeners & broadcast events in a default tenant aware application
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.0...4.0.1
Refactor registerTenantFinder method to reduce complexity by @misaf in https://github.com/spatie/laravel-multitenancy/pull/536
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.2.0...4.0.0
Laravel 11.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-multitenancy/pull/522
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.1.1...3.2.0
Update migration stub by @sevannerse in https://github.com/spatie/laravel-multitenancy/pull/495
TenantNotFoundForRequestEvent by @jacobmllr95 in https://github.com/spatie/laravel-multitenancy/pull/502Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.1.0...3.1.1
Add support to queued closures by @masterix21 in https://github.com/spatie/laravel-multitenancy/pull/492
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.0.3...3.1.0
[no ci] Fix typo in config comment by @inmanturbo in https://github.com/spatie/laravel-multitenancy/pull/454
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.0.2...3.0.3
Fresh Tenant on each job by @masterix21 in https://github.com/spatie/laravel-multitenancy/pull/438
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.0.1...3.0.2
Correct doc url version for v3 by @l3aro in https://github.com/spatie/laravel-multitenancy/pull/412
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.0.0...3.0.1
NotTenantAware jobs will now forget any current tenant that might have been set when starting processing.
NotTenantAware jobs will now forget any current tenant that might have been set when starting processing.Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.9...3.0.0
Fix an issue where the Illuminate\Cache\Repository was not being cleared from the container
Illuminate\Cache\Repository was not being cleared from the containerFull Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.8...2.3.9
Replace id with getKey() so uuids could be used as primary keys by @lartisan in https://github.com/spatie/laravel-multitenancy/pull/392
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.7...2.3.8
Prefix Cache Task - Cache Store by @moisish in https://github.com/spatie/laravel-multitenancy/pull/374
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.6...2.3.7
Docs: fix the link to the video introduction by @PovilasKorop in https://github.com/spatie/laravel-multitenancy/pull/361
Tenant class from self to static by @ksassnowski in https://github.com/spatie/laravel-multitenancy/pull/365Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.5...2.3.6
Refresh connection resolver for models after switching database by @AlexVanderbist in https://github.com/spatie/laravel-multitenancy/pull/355
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.4...2.3.5
Remove link to filesystem doc that doesn't exist by @skoontastic in https://github.com/spatie/laravel-multitenancy/pull/349
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.3...2.4.0
docs: change method visibility in example by @medvinator in https://github.com/spatie/laravel-multitenancy/pull/326
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.2...2.3.3
- add support for Laravel 9
Reload Router instance when switching route cache on Laravel Octane by @AlexVanderbist in https://github.com/spatie/laravel-multitenancy/pull/309
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.0...2.3.1
Add route cache path switcher by @AlexVanderbist in https://github.com/spatie/laravel-multitenancy/pull/308
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.2.0...2.3.0
Updated link to Tom Schlick's blog by @chimit in https://github.com/spatie/laravel-multitenancy/pull/283
JobRetryRequested queue event and fix #259 by @aginev in https://github.com/spatie/laravel-multitenancy/pull/298Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.1.1...2.2.0
add filterCurrent and rejectCurrent to TenantCollection
- add Laravel Octane support
- drop support for PHP 7
🐛 Miss return when queuable job is a callable
Queueable job from the configuration file
Add delayed callbacks in Tenant context
- allow PHP 8
NeedsTenant ability to return or redirect
- fix for BroadcastEvent
add the ability to dispatch events tenant aware
- add support for Laravel 8
Restored check isCurrent on makeCurrent
Removed check isCurrent from makeCurrent
Forget current when making new tenant current (PR #111)
Removed $guarded from Tenant model
🐛 TenantAware trait now reflects the right tenant model
💅 Changed TenantsArtisanCommand to use TenantAware trait
- added TenantAware
TenantAware🐛 properly handle queued mailables and notification
database switch fails with misconfigured tenant
One column per quarter.