Cara mencantumkan pemberitahuan dari database

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

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