Bud is a first-party package for Sprout that provides functionality allowing tenant-specific configuration for Laravel's core services.
Bud provides a service override for several of Laravel's core
services,
which registers a driver called bud
with that services manager.
When Laravel attempts to resolve something that has the bud
driver,
Bud will load the corresponding service config for the current tenant, and use that.
Bud supports the following.
- Auth Providers
- Broadcasting Connections
- Cache Stores
- Database Connections
- Filesystem Disks
- Logging Channels
- Mailers
- Queue Connections
Note
If you require configurations that does not require additional values,
and can be worked out based on the tenant (adding WHERE
clauses, etc.),
then please consider one of Sprouts'
existing service overrides,
or a custom one.