4 months ago

How to send data to Pusher

Posted 4 months ago by aGandrass

Hi, it is my first time working with pusher and I have a little problem. Here is my Webhooks Controller:

    $logbook = Logbook::create([
      'strp_paymentuniqid' => $sg_payment_id,
      'sg_message_id'      => $sg_message_id,
      'sg_event'           => $sg_event,
      'sg_category'        => $sg_category,
      'sg_event_id'        => $sg_event_id,
      'sg_response'        => $sg_response,
      'sg_reason'          => $sg_reason
    Newpayment::where('paymentuniqid', $sg_payment_id)
      ->update ([
          'paymentstatus' => $sg_event,


And that is my PaymentStatusUpdate Event: class PaymentStatusUpdate implements ShouldBroadcast { use Dispatchable, InteractsWithSockets, SerializesModels; public $update = "Test"; /** * Create a new event instance. * * @return void */ public function __construct() { }

 * Get the channels the event should broadcast on.
 * @return \Illuminate\Broadcasting\Channel|array
public function broadcastOn()
  return ['paymentstatus'];
    // return new PrivateChannel('channel-name');


If I check the Pusher Console I do get the message update = Test. Ho do I get the data from my Webhooks Controller passed to Pusher? Thank you all

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