laravel / reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.
https://reverb.laravel.com
MIT License
1.02k stars 71 forks source link

Reverb ignoring Laravel cache settings and trying to use DB table as cache #139

Closed itsmill3rtime closed 4 months ago

itsmill3rtime commented 4 months ago

Reverb Version

1.0.0-beta6

Laravel Version

11

PHP Version

8.2

Description

When starting reverb i get an error BUT the process stays up and is able to serve websocket connections:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xray.cache' doesn't exist (Connection: mysql, SQL: insert into `cache` (`key`, `value`, `expiration`) values (ba_cache_laravel:reverb:restart, i:1712772379;, 2028132379)
  on duplicate key update `key` = values(`key`), `value` = values(`value`), `expiration` = values(`expiration`))

if i run reverb:restart command i get the same error and the command just fails out. it is checking for a database table for cache... but laravel is configured to use redis and works in the rest of the app with redis just fine. not sure why reverb is ignoring the default cache driver

I have in env CACHE_DRIVER=redis

Steps To Reproduce

start reverb server or try restarting it

itsmill3rtime commented 4 months ago

didn't realize laravel 11 changed from CACHE_DRIVER to CACHE_STORE