lacodix/laravel-scoped-mail-config
Send Laravel mail with dynamic, per-model mail configuration. Implement HasMailConfig on tenants, teams, users, or any model to scope SMTP and sender settings—ideal for multi-tenancy and admin-managed mail configs.
HasMailConfig, ScopedMail::resolveScopeUsing, and a ScopedMail facade extending Laravel Mail). Buy/spike it if tenant-scoped mail is adjacent to the roadmap; build or fork it if tenant email configuration becomes core, security-sensitive infrastructure.spatie/laravel-multitenancy. It is not a general email platform.Mail facade, and need ScopedMail::fake()-style testability.Executives: “This lets us offer tenant-specific email identity—branded senders, BYO SMTP, or isolated credentials—without rebuilding our mail infrastructure. It is MIT-licensed and small, but adoption is very low, so I recommend a time-boxed spike and an internal wrapper rather than org-wide standardization. If it works, it can unblock enterprise and white-label use cases; if not, the in-house fallback is limited.”
Engineering: “Implement HasMailConfig on the tenant/user model, register ScopedMail::resolveScopeUsing(...) in a service provider, and send via ScopedMail::to(...)->send(...); the facade extends Laravel Mail, and fake() is supported. Main risks are package abandonment, config-cache behavior, queue workers losing tenant context, and secret management. Wrap it behind our own mail-config service, add tests for fallback and queued sends, and be prepared to fork or replace it.”
How can I help you explore Laravel packages today?