Laravel 7 - Authentication problem on websocket dashboard #438
Description
I have Laravel Websockets running on Laravel 7 (thanks to the changes in this fork: beyondcode/laravel-websockets-demo#12) but I get an error 500 in my console when I connect in the websocket dashboard (/ laravel-websockets
).
I can confirm that the underlying websocket server has continued to work fine, because my test events are still arriving. However, this error message is purely at the dashboard what @beyondcode made.
In addition, I see the error message below in my laravel.log:
[2020-08-05 10:29:53] local.ERROR: Trying to get property 'key' of non-object {"userId":1,"exception":"[object] (ErrorException(code: 0): Trying to get property 'key' of non-object at /var/www/mission-control/vendor/beyondcode/laravel-websockets/src/Dashboard/Http/Controllers/AuthenticateDashboard.php:22) [stacktrace]
Is it possible that someone has already experienced this problem and / or knows a solution?