All notable changes to laravel-multitenancy
will be documented in this file
- Fresh Tenant on each job by @masterix21 in spatie#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 spatie#412
- docs: update composer command for install by @alexrififi in spatie#413
- Add PHP 8.2 Support by @patinthehat in spatie#424
- Update broken shield badge by @erikn69 in spatie#437
- Laravel 10.x Support by @erikn69 in spatie#435
- @l3aro made their first contribution in spatie#412
- @patinthehat made their first contribution in spatie#424
- @erikn69 made their first contribution in spatie#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 spatie#392
- @lartisan made their first contribution in spatie#392
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.7...2.3.8
- Prefix Cache Task - Cache Store by @moisish in spatie#374
- @moisish made their first contribution in spatie#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 spatie#361
- Change return type hint for
Tenant
class fromself
tostatic
by @ksassnowski in spatie#365
- @PovilasKorop made their first contribution in spatie#361
- @ksassnowski made their first contribution in spatie#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 spatie#355
- Fix cache prefixes not being updated by @AlexVanderbist in spatie#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 spatie#349
- Fix migration tests by @masterix21 in spatie#352
- Improves the SwitchRouteCacheTask by @masterix21 in spatie#351
- @skoontastic made their first contribution in spatie#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 spatie#326
- added ; in the php code by @MJunaidAhmad in spatie#329
- Removing typehint for compatibility by @telkins in spatie#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 spatie#309
Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.0...2.3.1
- Add route cache path switcher by @AlexVanderbist in spatie#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