this is the first time Im using pusher (pusher.com),all fine on local but on production sending notification not working, if I sent from local it works and send notification to production but send from live it is not working!!!
broadcasting:
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster'=> env('CLUSTER'),
'encrypted' => true,
],
],
sending function:
public function OrderEvent()
{
$order_number='150';
event(new OrderSubmitted($order_number));
return "We just sent!";
}
error in production:
production.INFO: Broadcasting [App\Events\OrderSubmitted] on channels [order-submitted] with payload:
{
"order_number": "15-EA",
"socket": null
}