tenancy / laravel-websockets-bridge
Package to bridge beyondcode/laravel-websockets to hyn/multi-tenant.
Fund package maintenance!
tenancy
ArlonAntonius
fletch3555] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g.
[user1
user2
Open Collective
Requires
- php: >=7.3
- beyondcode/laravel-websockets: ^1.0
- hyn/multi-tenant: ^5.3
- illuminate/encryption: ^5.7
This package is auto-updated.
Last update: 2024-10-29 05:46:43 UTC
README
This was created in 2 hours and has not been tested. I can't even guarantee there's a need beyond what beyondcode/laravel-websockets
provides natively. It goes without saying that this exists without warranty of success.
How to install:
- Run
composer require tenancy/laravel-websockets-bridge
- You should already have
hyn/multi-tenant
andbeyondcode/laravel-websockets
installed following each package's documented install process.
- You should already have
- In the
config/websockets.php
file, update thestatistics
->model
key to have a value of\Tenancy\LaravelWebsockets\Models\WebsocketsStatisticsEntry::class
- This ensures the model uses the
system
database connection, even if you havetenant
as default.
- This ensures the model uses the