Преглед изворни кода

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

Gustavo Zanatta пре 1 дан
родитељ
комит
40e413f38e
1 измењених фајлова са 1 додато и 1 уклоњено
  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')