order = $order; } /** * Execute the job. * * @return void */ public function handle() { $order = $this->order; // dd($order); $checkStatus = new OrderBinggoController; $checkStatus->makeDatabase($order); try { $save = OrderBinggo::findOrFail($order['id']); $save->status = 'active'; $save->active_at = date('Y-m-d H:i:s'); $save->save(); $options = [ 'cluster' => 'ap1', 'useTLS' => true, ]; $pusher = new Pusher( env('PUSHER_APP_KEY'), env('PUSHER_APP_SECRET'), env('PUSHER_APP_ID'), $options ); $data['message'] = 'test'; // $pusher->trigger('notify-channel', 'App\\Events\\Notify', $data); //Send a message to notify channel with an event name of notify-event $pusher->trigger('update-order', 'App\\Events\\UpdateOrder', $data); } catch (\Exception $e) { return $e->getMessage(); } } }