Answers for "How to list notification from database"

PHP
0

How to list notification from database

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

foreach ($user->unreadNotifications as $notification) {
    echo $notification->type;
}
Posted by: Guest on October-21-2021

Code answers related to "How to list notification from database"

Browse Popular Code Answers by Language