增加 事件(摆烂)

This commit is contained in:
iVampireSP.com 2023-01-10 23:01:25 +08:00
parent 2d5e10cf0e
commit 3a8eaf1853
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 6 additions and 1 deletions

View File

@ -40,4 +40,9 @@ public function broadcastOn(): PrivateChannel
{
return new PrivateChannel('users.' . $this->user->id);
}
public function broadcastAs(): string
{
return 'common';
}
}

View File

@ -152,6 +152,6 @@ public function routeNotificationForMail(WorkOrderNotification $work_order): arr
public function receivesBroadcastNotificationsOn(): string
{
return new PrivateChannel('users.' . $this->id);
return new PrivateChannel('users.' . $this->user_id);
}
}