1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-08-06 12:04:04 +00:00
tenancy/src
lukinovec 9e6e0a988b Remove TenancyBroadcastManager, pass the channel auth closures directly in the Broadcaster extend() closure
Channel auth closures (registered using Broadcast::channel() e.g. in routes/channels.php) are only ever read from the default broadcaster -- both Broadcast::channel() and Broadcast::auth() go through the default broadcaster. TenancyBroadcastManager passed the closures to every broadcaster it resolved, which is pointless -- even in central context, Laravel doesn't do anything like that).

Instead, bind a fresh BroadcastManager and pass the central channel closures to its default broadcaster while extending Broadcaster. So now, tenant context behaves exactly like central context, just with broadcasters resolved using the tenant credentials.

Also update comments.
2026-07-12 11:49:34 +02:00
..
Actions Cloning: improve type annotations, add cloneRoutes() for convenience 2025-11-10 02:16:57 +01:00
Bootstrappers Remove TenancyBroadcastManager, pass the channel auth closures directly in the Broadcaster extend() closure 2026-07-12 11:49:34 +02:00
Commands migrate-fresh: show migration output when verbose (#1464) 2026-06-28 19:04:02 -07:00
Concerns Add --skip-tenants option to HasTenantOptions (#1436) 2026-06-07 15:18:38 -07:00
Contracts Features refactor 2025-08-31 23:18:44 +02:00
Controllers [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Database Parameter validation and other DB manager improvements (#1459) 2026-06-27 19:51:30 -07:00
Enums Make RouteMode enum backed (#1362) 2025-06-02 20:34:49 +02:00
Events Pending tenants refactor (BC break) 2025-08-25 00:01:02 +02:00
Exceptions remove ignition dependencies 2025-06-18 23:29:24 +02:00
Facades [4.x] Support database cache store tenancy (#1290) (resolve #852) 2025-08-08 00:54:01 +02:00
Features phpstan fixes 2026-06-30 19:33:30 -07:00
Jobs [MINOR BC] Create pending tenants with pending_since, improve --with-pending (#1458) 2026-06-05 15:36:57 -07:00
Listeners Change tenant storage listeners into jobs (#1446) 2026-04-22 16:45:54 +02:00
Middleware Remove redundant universal route check from PreventAccess MW (#1427) 2026-05-12 23:59:21 +02:00
Overrides Remove TenancyBroadcastManager, pass the channel auth closures directly in the Broadcaster extend() closure 2026-07-12 11:49:34 +02:00
Resolvers Correct DomainTenantResolver::isSubdomain() check (#1425) 2026-05-11 14:26:06 +02:00
ResourceSyncing Fix duplicate entry error when updating TenantPivot columns (#1469) 2026-07-07 18:56:34 -07:00
RLS [4.x] TableRLSManager refactor, comment constraints (#1354) 2025-07-03 21:12:04 +02:00
UniqueIdentifierGenerators Add UUIDv7Generator 2025-11-04 15:45:48 +01:00
helpers.php phpstan fixes 2026-06-30 19:33:30 -07:00
Tenancy.php [4.x] Add Tenancy::reinitialize() method (#1449) 2026-04-08 19:21:43 +02:00
TenancyServiceProvider.php Make globalCache always use central conn with DB cache stores (#1462) 2026-06-27 18:30:01 -07:00