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