소스 검색

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')