Przeglądaj źródła

correcao notificacoes para exibir imagem corretamente + abrir modal com informacoes completas

Gustavo Zanatta 16 godzin temu
rodzic
commit
40e413f38e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Services/NotificationService.php

+ 1 - 1
app/Services/NotificationService.php

@@ -64,7 +64,7 @@ class NotificationService
 
     public function getUnreadByUser(int $userId): Collection
     {
-        return NotificationSend::with('notification')
+        return NotificationSend::with(['notification', 'notification.media'])
             ->where('user_id', $userId)
             ->where('read', false)
             ->orderBy('created_at', 'desc')