有谁知道如何从状态通道获取所有连接的用户?我的 API 控制器中需要它们,并将它们全部保存在数据库中。
我发现有些人使用Pusher::get(),但后来我收到一条错误消息Non-static method Pusher\Pusher::get() should not be called statically。我见过其他人使用$this->pusher('/channels'),但是我从哪里获取 $pusher 实例?
Pusher::get()
Non-static method Pusher\Pusher::get() should not be called statically
$this->pusher('/channels')
抱歉,也许是个菜鸟问题?
laravel pusher laravel-echo
laravel ×1
laravel-echo ×1
pusher ×1