feat: broadcasting item to refresh pages

This commit is contained in:
2022-11-13 21:04:45 -03:00
parent 567adce732
commit 7c09fc4896
21 changed files with 1354 additions and 135 deletions

View File

@@ -14,3 +14,8 @@
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
Broadcast::channel('touchedItem', function ($user) {
return true;
/* return $user->id === Item::findOrNew($itemId)->users->find($user->id)->id; */
});