https://github.com/tenancy/laravel-websockets-bridge
Package to bridge the beyondcode/laravel-websockets package to hyn/multi-tenant
https://github.com/tenancy/laravel-websockets-bridge
laravel multitenancy websockets
Last synced: about 1 year ago
JSON representation
Package to bridge the beyondcode/laravel-websockets package to hyn/multi-tenant
- Host: GitHub
- URL: https://github.com/tenancy/laravel-websockets-bridge
- Owner: tenancy
- License: mit
- Created: 2018-12-05T03:16:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T05:13:49.000Z (over 7 years ago)
- Last Synced: 2025-06-12T02:39:03.509Z (about 1 year ago)
- Topics: laravel, multitenancy, websockets
- Language: PHP
- Size: 10.7 KB
- Stars: 13
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
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:
1. Run `composer require tenancy/laravel-websockets-bridge`
* You should already have `hyn/multi-tenant` and `beyondcode/laravel-websockets` installed following each package's documented install process.
2. In the `config/websockets.php` file, update the `statistics` -> `model` key to have a value of `\Tenancy\LaravelWebsockets\Models\WebsocketsStatisticsEntry::class`
* This ensures the model uses the `system` database connection, even if you have `tenant` as default.