增加 事件(摆烂)
This commit is contained in:
parent
2d5e10cf0e
commit
3a8eaf1853
@ -40,4 +40,9 @@ public function broadcastOn(): PrivateChannel
|
|||||||
{
|
{
|
||||||
return new PrivateChannel('users.' . $this->user->id);
|
return new PrivateChannel('users.' . $this->user->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function broadcastAs(): string
|
||||||
|
{
|
||||||
|
return 'common';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,6 +152,6 @@ public function routeNotificationForMail(WorkOrderNotification $work_order): arr
|
|||||||
|
|
||||||
public function receivesBroadcastNotificationsOn(): string
|
public function receivesBroadcastNotificationsOn(): string
|
||||||
{
|
{
|
||||||
return new PrivateChannel('users.' . $this->id);
|
return new PrivateChannel('users.' . $this->user_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user