/** * Handle the event. * * @return void */ public function handle(OrderUncanceledEvent $event) { $company = Company::where('nav_code', $event->navCode)->first(); $notification = Notification::createOrderUncanceled($company, $event->orderNumber); $this->pusher->trigger('notification-channel', 'notification', json_encode($notification)); }