@php $user = auth()->user(); $notifications = $user->notifications; $unread = $user->unreadNotifications; @endphp

Debug Notifications

User ID: {{ $user->id }}

User Name: {{ $user->name }}

User Class: {{ get_class($user) }}

Connection: {{ $user->getConnectionName() }}


Unread Notifications (Count: {{ $unread->count() }})


All Notifications (Count: {{ $notifications->count() }})

{{ json_encode($notifications->toArray(), JSON_PRETTY_PRINT) }}