feat: header con mensajes y notificaciones en tiempo real

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 14:14:46 -06:00
parent 9dd5ac6cbf
commit eaeedf2029
8 changed files with 298 additions and 149 deletions
+4
View File
@@ -9,3 +9,7 @@ Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
Broadcast::channel('chat.{receiverId}', function ($user, $receiverId) {
return (int) $user->id === (int) $receiverId;
});
Broadcast::channel('notifications.{userId}', function ($user, $userId) {
return (int) $user->id === (int) $userId;
});