Laravel Sprout by Ollie Read is a multitenancy package for Laravel under active development. It hasn’t hit a v1.0 release, but we decided to share it with those who want to try it out early and follow along with the development.
Guess this is the perfect time to announce that I’m working on a package for Laravel called Sprout, which aims to provide a feature-rich and flexible multitenancy solution for Laravel!https://t.co/MksaXmfEy8
— ollieread (@ollieread) September 4, 2024 <script async src=”https://platform.twitter.com/widgets.js” charset=”utf-8″></script>
Main Features
Some of these features might be under development and may change. The following is a list of features either finished, in progress, or planned:
Tenant Identification – support for a subdomain, path, session/cookie, HTTP header, and authentication-based identification.
Dependency Injection Support – resolution of a tenant allows it to be injected into controllers
Eloquent Tenant support – simplify working with tenants that are models.
Database support – initially will launch with single database support to cover common use-cases, other models planned.
Tenant-aware services (in progress)
Highly configurable and extensible
And more…
Check out the Sprout roadmap for more details on features and their current development status. Sprout plans to offer domain-based tenancy, multi-database tenant support, screencasts, and more.
You can learn more about this package and view the source code on GitHub at sprout-laravel/sprout. I would also suggest checking out the FAQ section of the readme.
The post Sprout Multitenancy Package for Laravel appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest
Laravel articles like this directly in your inbox.
Source: Read MoreÂ