Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Multitenancy Laravel Package

spatie/laravel-multitenancy

Unopinionated multitenancy for Laravel. Detect the current tenant per request and define what happens when switching tenants. Supports single or multiple databases, tenant-aware queued jobs, commands that run per tenant, and easy per-model connection setup.

View on GitHub
Deep Wiki
Context7
4.0.9

What's Changed

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.8...4.0.9

4.0.8

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.7...4.0.8

4.0.7

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.6...4.0.7

4.0.6

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.5...4.0.6

4.0.5

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.4...4.0.5

4.0.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.2...4.0.3

4.0.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/4.0.1...4.0.2

4.0.1
  • 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

4.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/3.2.0...4.0.0

2.3.9
  • 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

3.0.0

Breaking change

  • NotTenantAware jobs will now forget any current tenant that might have been set when starting processing.
2.3.8

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.7...2.3.8

2.3.7
2.3.6
2.3.5
2.3.4
2.3.2
  • add support for Laravel 9
2.3.1

Full Changelog: https://github.com/spatie/laravel-multitenancy/compare/2.3.0...2.3.1

2.2.0
  • Handle JobRetryRequested queue event and fix (#259)
  • 🐛 tenants:artisan backslashes (#296)
2.1.1
  • add filterCurrent and rejectCurrent to TenantCollection (#275)
2.1.0
  • add Laravel Octane support
2.0.0
  • drop support for PHP 7
1.6.11
  • allow PHP 8
1.6.10
  • NeedsTenant ability to return or redirect
1.6.9
  • fix for BroadcastEvent (#142)
1.6.8
  • add ability to dispatch events tenant aware
1.6.7
  • add support for Laravel 8
1.6.6
  • restored check isCurrent from makeCurrent
1.6.5
  • 🐛 removed check isCurrent from makeCurrent
1.6.4
  • forget current when making new tenant current
1.6.3
  • removed $guarded from Tenant model
1.6.2
  • TenantAware now uses the Tenant model from config
1.6.1
  • TenantsArtisanCommand now uses TenantAware trait
1.6.0
  • added TenantAware
1.5.1
  • 🐛 properly handle queued mailables and notification (#78)
1.5.0
  • database switch fails with misconfigured tenant (#92)
1.4.0
  • added execute for the landlord
1.3.0
  • added $tenant->execute($callable) to execute isolated tenant code (#60)
1.2.0
  • tenant:artisan search field customizable using config (#52)
1.1.5
  • allow mass assignment when creating a new tenant by default (#57)
1.1.4
  • improve error handling of tenant aware jobs
1.1.3
  • always register the tenants artisan command, so it may be called from web requests as well.
1.1.2
  • remove unused import from config (#20)
1.1.1
  • use the configured tenant model in artisan command (#17)
1.1.0
  • fix published migration name
  • ask for artisan command if none is given
1.0.0
  • initial release
What's
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport