Skip to content

Commit 380f6f2

Browse files
committed
update: migrate from laravel-echo-server to laravel reverb
Requires much less effort to get working. laravel-echo-server is way too finicky. There may be performance issues with https://www.github.com/laravel/reverb/issues/331 and https://www.github.com/laravel/reverb/issues/116 but maybe worth a shot? Fixes #4875.
1 parent 1295804 commit 380f6f2

File tree

11 files changed

+1152
-18
lines changed

11 files changed

+1152
-18
lines changed

.env.example

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ APP_URL=http://localhost
77

88
VITE_ECHO_ADDRESS=http://localhost:8443
99

10+
REVERB_APP_ID=my-app-id
11+
REVERB_APP_KEY=my-app-key
12+
REVERB_APP_SECRET=my-app-secret
13+
REVERB_HOST=localhost
14+
REVERB_PORT=8080
15+
REVERB_SCHEME=https
16+
17+
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
18+
VITE_REVERB_HOST="${REVERB_HOST}"
19+
VITE_REVERB_PORT="${REVERB_PORT}"
20+
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
21+
1022
LOG_CHANNEL=daily
1123

1224
DB_CONNECTION=mysql
@@ -16,7 +28,7 @@ DB_DATABASE=unit3d
1628
DB_USERNAME=root
1729
DB_PASSWORD=
1830

19-
BROADCAST_CONNECTION=redis
31+
BROADCAST_CONNECTION=reverb
2032
CACHE_STORE=redis
2133
SESSION_DRIVER=redis
2234
SESSION_CONNECTION=session

.github/workflows/phpunit-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
DB_DATABASE: unit3d
7272
DB_PASSWORD: null
7373
CACHE_STORE: array
74+
BROADCAST_CONNECTION: 'null'
7475
- name: Cache phpunit cache directory
7576
uses: actions/cache@v4
7677
with:

bun.lockb

-37.4 KB
Binary file not shown.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"laravel/fortify": "^1.30.0",
2828
"laravel/framework": "^12.26.4",
2929
"laravel/octane": "^2.12.1",
30+
"laravel/reverb": "^1.0",
3031
"laravel/scout": "^10.19.0",
3132
"laravel/tinker": "^2.10.1",
3233
"livewire/livewire": "^3.6.4",

0 commit comments

Comments
 (0)