Просмотр исходного кода

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

Gustavo Zanatta 18 часов назад
Родитель
Сommit
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')