I am trying to trigger a pusher event but it's not working.
(我正在尝试触发推送事件,但无法正常工作。)
class SendWaitingForRedirect implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $message;
public function __construct($message)
{
$this->message = $message;
}
public function broadcastOn()
{
return ['my-channel'];
}
public function broadcastAs()
{
return 'my-event';
}
}
and calling the event as
(并将事件称为)
event(new AppEventsSendWaitingForRedirect('hello world'));
I don't know what's wrong.
(我不知道怎么了)
Can you please help? (你能帮忙吗?)
I checked errors on the pusher.
(我检查了推杆上的错误。)
It is not having any errors. (它没有任何错误。)
Can you please help. (你能帮忙吗?)
ask by Jatin Raikwar translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…