All notable changes to laravel-multitenancy
will be documented in this file
- Update using-a-custom-tenant-model.md by @thoresuenert in #553
- Fix an exception when requiring a tenant to be active to unserialize a model
- @thoresuenert made their first contribution in #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 #536
- Contract IsTenant replace Tenant uses by @masterix21 in #544
- @misaf made their first contribution in #536
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.2.0...4.0.0
- Laravel 11.x Compatibility by @laravel-shift in #522
- @laravel-shift made their first contribution in #522
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.1.1...3.2.0
- Update migration stub by @sevannerse in #495
- Correct Typos by @jacobmllr95 in #501
- Add new
TenantNotFoundForRequestEvent
by @jacobmllr95 in #502
- @sevannerse made their first contribution in #495
- @jacobmllr95 made their first contribution in #501
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.1.0...3.1.1
- Add support to queued closures by @masterix21 in #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 #454
- [FIX] unmatched double quote (typo) by @inmanturbo in #459
- [FIX] Bind or forget current tenant by @raymadrona in #471
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.0.2...3.0.3
- Fresh Tenant on each job by @masterix21 in #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 #412
- docs: update composer command for install by @alexrififi in #413
- Add PHP 8.2 Support by @patinthehat in #424
- Update broken shield badge by @erikn69 in #437
- Laravel 10.x Support by @erikn69 in #435
- @l3aro made their first contribution in #412
- @patinthehat made their first contribution in #424
- @erikn69 made their first contribution in #437
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.
- Fix an issue where the
Illuminate\Cache\Repository
was not being cleared from the container
Full 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 #392
- @lartisan made their first contribution in #392
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.7...2.3.8
- Prefix Cache Task - Cache Store by @moisish in #374
- @moisish made their first contribution in #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 #361
- Change return type hint for
Tenant
class fromself
tostatic
by @ksassnowski in #365
- @PovilasKorop made their first contribution in #361
- @ksassnowski made their first contribution in #365
Full 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 #355
- Fix cache prefixes not being updated by @AlexVanderbist in #355
- Better compatibility with Octane
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 #349
- Fix migration tests by @masterix21 in #352
- Improves the SwitchRouteCacheTask by @masterix21 in #351
- @skoontastic made their first contribution in #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 #326
- added ; in the php code by @MJunaidAhmad in #329
- Removing typehint for compatibility by @telkins in #336
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 #309
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.0...2.3.1
- Add route cache path switcher by @AlexVanderbist in #308
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.2.0...2.3.0
- Handle JobRetryRequested queue event and fix (#259)
- 🐛 tenants:artisan backslashes (#296)
- add filterCurrent and rejectCurrent to TenantCollection (#275)
- add Laravel Octane support
- drop support for PHP 7
- allow PHP 8
- NeedsTenant ability to return or redirect
- fix for BroadcastEvent (#142)
- add ability to dispatch events tenant aware
- add support for Laravel 8
- restored check isCurrent from makeCurrent
- 🐛 removed check isCurrent from makeCurrent
- forget current when making new tenant current
- removed $guarded from Tenant model
- TenantAware now uses the Tenant model from config
- TenantsArtisanCommand now uses TenantAware trait
- added
TenantAware
- 🐛 properly handle queued mailables and notification (#78)
- database switch fails with misconfigured tenant (#92)
- added
execute
for the landlord
- added
$tenant->execute($callable)
to execute isolated tenant code (#60)
tenant:artisan
search field customizable using config (#52)
- allow mass assignment when creating a new tenant by default (#57)
- improve error handling of tenant aware jobs
- always register the tenants artisan command, so it may be called from web requests as well.
- remove unused import from config (#20)
- use the configured tenant model in artisan command (#17)
- fix published migration name
- ask for artisan command if none is given
- initial release