Comment répertorier la notification à partir de la base de données

$user = App\Models\User::find(1);

foreach ($user->unreadNotifications as $notification) {
    echo $notification->type;
}
Zany Zebra