5 months ago

Laravel Echo Documentation: Where does `orderId` come from?

Posted 5 months ago by thebigk

I'm referring to the following snippet from the documentation:

    .listen('ShippingStatusUpdated', (e) => {

I've got the public channels working; but private channels aren't. When I have the similar setup (for my app), I get the error in console that says orderId not defined.

My guess was that if I define public $orderId in my event, Echo will automatically find it. But that isn't working. Do I have to define the orderId separately in my JS file?

Please sign in or create an account to participate in this conversation.